Show
Ignore:
Timestamp:
06/13/2008 10:50:12 AM (4 years ago)
Author:
gbooker
Message:

Properly escape () characters
Fixes #181

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/SapphireMovieImporter.m

    r533 r587  
    555555        searchStr = [searchStr stringByReplacingAllOccurancesOf:@"." withString:@" "]; 
    556556        searchStr = [searchStr stringByReplacingAllOccurancesOf:@"-" withString:@" "]; 
    557         searchStr = [searchStr stringByReplacingAllOccurancesOf:@"(" withString:@" "]; 
    558         searchStr = [searchStr stringByReplacingAllOccurancesOf:@")" withString:@" "]; 
    559         NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.imdb.com/find?s=all&site=aka&q=%@", [searchStr URLEncode]]]; 
     557        NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.imdb.com/find?s=tt&site=aka&q=%@", [searchStr URLEncode]]]; 
    560558        NSError * error = nil; 
    561559        BOOL uniqueResult=NO ;