Changeset 654
- Timestamp:
- 08/03/08 21:19:33 (4 months ago)
- Files:
-
- trunk/SapphireFrappliance/SapphireMetaData.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireTVShowImporter.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SapphireFrappliance/SapphireMetaData.m
r634 r654 1559 1559 { 1560 1560 /*Find cover art for the current file in the "Cover Art" dir */ 1561 NSString *subPath = [[self path] stringByDeletingPathExtension]; 1561 NSString *subPath = [self path]; 1562 if([self fileContainerType] != FILE_CONTAINER_TYPE_VIDEO_TS) 1563 subPath = [subPath stringByDeletingPathExtension]; 1564 1562 1565 NSString *fileName = [subPath lastPathComponent]; 1563 1566 NSString * myArtPath=nil; 1567 1564 1568 if([self fileClass]==FILE_CLASS_TV_SHOW) 1565 1569 myArtPath=[NSString stringWithFormat:@"%@/@TV/%@/%@/%@", trunk/SapphireFrappliance/SapphireTVShowImporter.m
r640 r654 613 613 NSString *imgURL = [info objectForKey:IMG_URL]; 614 614 NSString *newPath = [previewArtPath stringByAppendingPathComponent:fileName]; 615 NSString *imageDestination = [[newPath stringByDeletingPathExtension] stringByAppendingPathExtension:@"jpg"]; 615 if( [metaData fileContainerType] != FILE_CONTAINER_TYPE_VIDEO_TS ) 616 newPath = [newPath stringByDeletingPathExtension]; 617 618 NSString *imageDestination = [newPath stringByAppendingPathExtension:@"jpg"]; 616 619 BOOL isDir = NO; 617 620 BOOL imageExists = [[NSFileManager defaultManager] fileExistsAtPath:imageDestination isDirectory:&isDir] && !isDir;
