- Timestamp:
- 04/26/09 17:24:48 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/CoreData/SapphireFrappliance/MetaDataImporting/SapphireTVShowImporter.m
r795 r827 29 29 #import "SapphireEpisode.h" 30 30 #import "SapphireSettings.h" 31 #import "NSImage-Extensions.h" 32 31 33 32 34 /* TVRage XPATHS */ … … 631 633 632 634 /* Lets process the cover art directory structure */ 633 NSString * previewArtPath=[NSString stringWithFormat:@"%@/@TV/%@/%@", 634 [SapphireMetaDataSupport collectionArtPath], 635 [info objectForKey:META_SHOW_NAME_KEY], 636 [NSString stringWithFormat:@"Season %d",[[info objectForKey:META_SEASON_NUMBER_KEY] intValue]]]; 635 NSString * previewArtPath = [NSFileManager previewArtPathForTV:[info objectForKey:META_SHOW_NAME_KEY] season:[[info objectForKey:META_SEASON_NUMBER_KEY] intValue]]; 637 636 638 637 [[NSFileManager defaultManager] constructPath:previewArtPath]; … … 656 655 [myDelegate release]; 657 656 } 657 else if(!imageExists) 658 { 659 //QTMovie is broken on ATV, don't fetch images there 660 if ([SapphireFrontRowCompat usingFrontRow] && ![SapphireFrontRowCompat usingTakeTwo] && [metaData fileContainerType] == FILE_CONTAINER_TYPE_QT_MOVIE) 661 { 662 // NSImage-Extensions 663 [[NSImage imageFromMovie:path] writeToFile:imageDestination atomically:YES]; 664 } 665 } 658 666 659 667 /*Import the info*/
