Changeset 479

Show
Ignore:
Timestamp:
02/04/08 23:30:21 (10 months ago)
Author:
gbooker
Message:

Allow two movies with the same title if they have different release dates
Fixes #106

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SapphireFrappliance/SapphireMovieDirectory.m

    r461 r479  
    243243                        NSString * title=[file movieTitle]; 
    244244                        if(title != nil) 
     245                        { 
     246                                title = [NSString stringWithFormat:@"%@ - %@", title, [file movieReleaseDate]]; 
    245247                                [mutDict setObject:file forKey:title]; 
     248                        } 
    246249                } 
    247250        } 
  • trunk/SapphireFrappliance/SapphireMovieImporter.m

    r476 r479  
    545545        searchStr = [searchStr stringByReplacingAllOccurancesOf:@"." withString:@" "]; 
    546546        searchStr = [searchStr stringByReplacingAllOccurancesOf:@"-" withString:@" "]; 
     547        searchStr = [searchStr stringByReplacingAllOccurancesOf:@"(" withString:@" "]; 
     548        searchStr = [searchStr stringByReplacingAllOccurancesOf:@")" withString:@" "]; 
    547549        NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.imdb.com/find?s=all&q=%@", [searchStr URLEncode]]]; 
    548550        NSError * error = nil; 
     
    643645        if([metaData fileContainerType] == FILE_CONTAINER_TYPE_VIDEO_TS) 
    644646                return YES; 
    645         else return NO ; 
     647        return NO ; 
    646648} 
    647649