- Timestamp:
- 11/16/2009 08:07:37 PM (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/SapphireFrappliance/MetaData/Support/SapphireMovieDirectory.m
r963 r966 127 127 128 128 NSString *moviePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"video_H" ofType:@"png"]; 129 vdImport = [[SapphireCustomVirtualDirectoryImporter alloc] initWithPath:[applicationSupportDir() stringByAppendingPathComponent:@"virtualDirs.xml"]];130 129 defaultSorters = [[NSArray alloc] initWithObjects:titleSort, dateSort, imdbRatingSort, nil]; 131 130 … … 169 168 [virtualDirs release]; 170 169 [defaultSorters release]; 171 [vdImport release];172 170 Basic_Directory_Function_Deallocs 173 171 [super dealloc]; … … 221 219 { 222 220 /*Import any defined movie virtual directories*/ 223 NSArray *newVirtualDirs = [ vdImportmovieVirtualDirectories];221 NSArray *newVirtualDirs = [[SapphireApplianceController customVirtualDirectoryImporter] movieVirtualDirectories]; 224 222 if(![virtualDirs isEqualToArray:newVirtualDirs]) 225 223 { … … 238 236 SapphireFilteredFileDirectory *custom = [[SapphireFilteredFileDirectory alloc] initWithPredicate:[virtualDir predicate] Context:moc]; 239 237 [subDirs addObject:custom]; 240 [names addObject: BRLocalizedString([virtualDir title], [virtualDir description])];238 [names addObject:[virtualDir title]]; 241 239 [custom setPath:[[VIRTUAL_DIR_ROOT_PATH stringByAppendingString:@"/"] stringByAppendingString:[virtualDir description]]]; 242 240 [custom setCoverArtPath:moviePath]; // Change this to be part of the XML?
