- Timestamp:
- 01/09/09 15:46:53 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/CoreData/SapphireFrappliance/MetaDataImporting/SapphireTVShowImporter.m
r732 r739 199 199 NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.tvrage.com%@/episode_guide/%d", seriesName, season]]; 200 200 NSError *error = nil; 201 NSXMLDocument *document = [[ NSXMLDocument alloc] initWithContentsOfURL:url options:NSXMLDocumentTidyHTML error:&error];201 NSXMLDocument *document = [[[NSXMLDocument alloc] initWithContentsOfURL:url options:NSXMLDocumentTidyHTML error:&error] autorelease]; 202 202 /* Dump XML document to disk (Dev Only) */ 203 203 /* NSString *documentPath =[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/Sapphire/XML"]; … … 343 343 NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.tvrage.com/search.php?search=%@&sonly=1", [searchStr URLEncode]]]; 344 344 NSError *error = nil; 345 NSXMLDocument *document = [[ NSXMLDocument alloc] initWithContentsOfURL:url options:NSXMLDocumentTidyHTML error:&error];345 NSXMLDocument *document = [[[NSXMLDocument alloc] initWithContentsOfURL:url options:NSXMLDocumentTidyHTML error:&error] autorelease]; 346 346 SapphireLog(SAPPHIRE_LOG_IMPORT, SAPPHIRE_LOG_LEVEL_DEBUG, @"Document is %@", document); 347 347 if(error != nil && ![[error domain] isEqualToString:@"NSXMLParserErrorDomain"]) … … 641 641 NSURLRequest *request = [NSURLRequest requestWithURL:imageURL]; 642 642 SapphireTVShowDataMenuDownloadDelegate *myDelegate = [[SapphireTVShowDataMenuDownloadDelegate alloc] initWithDest:imageDestination]; 643 [[ NSURLDownload alloc] initWithRequest:request delegate:myDelegate];643 [[[NSURLDownload alloc] initWithRequest:request delegate:myDelegate] autorelease]; 644 644 [myDelegate release]; 645 645 }
