Show
Ignore:
Timestamp:
01/01/10 09:07:43 (2 years ago)
Author:
gbooker
Message:

Get site from scraper settings in the code as well.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/MetaDataImporting/SapphireMovieImporter.m

    r1047 r1087  
    181181        SapphireSiteMovieScraper *siteScraper = state->siteScraper; 
    182182        [siteScraper setObject:state]; 
    183         NSString *fullURL = [@"http://akas.imdb.com" stringByAppendingString:link]; 
     183        NSString *site = [[[siteScraper scraper] settings] objectForKey:@"url"]; 
     184        NSString *fullURL = [NSString stringWithFormat:@"http://%@%@", site, link]; 
    184185        if([fullURL characterAtIndex:[fullURL length]-1] != '/') 
    185186                fullURL = [fullURL stringByAppendingString:@"/"];