Show
Ignore:
Timestamp:
02/14/08 20:51:37 (4 years ago)
Author:
gbooker
Message:

Patch to select the directory instead of the filename for movie searches. Thanks to Stephan in ticket #120
Fixes #120

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/SapphireSettings.m

    r482 r491  
    5151#define ENABLE_FAST_SWITCHING_KEY       @"EnableFastSwitching" 
    5252#define USE_AC3_PASSTHROUGH                     @"EnableAC3Passthrough" 
     53#define ENABLE_DIR_LOOKUP                       @"EnableDirLookup" 
    5354#define DISABLE_ANON_KEY                        @"DisableAnonymousReporting" 
    5455#define LAST_PREDICATE                          @"LastPredicate" 
     
    9091                                                                                                BRLocalizedString(@"  Fast Directory Switching", @"Don't rescan directories upon entry and used cached data"), 
    9192                                                                                                BRLocalizedString(@"  Enable AC3 Passthrough", @"Enable AC3 Passthrough menu item"), 
     93                                                                                                BRLocalizedString(@"  Use Directory Lookup", @"Use directory names instead of filename for movie lookup"), 
    9294                                                                                                BRLocalizedString(@"  Disable Anonymous Reporting", @"Disable the anonymous reporting for aid in future features"), nil]; 
    9395         
     
    109111                                                                                                BRLocalizedString(@"Tells Sapphire that when using a filter, use the cached data to setup directories rather than scanning the directories themselves for new files.", @"Fast Directory Switching description"), 
    110112                                                                                                BRLocalizedString(@"Tells Sapphire that you have an AC3 decoder and to enable passthrough of the full audio information to the decoder. This is how you get 5.1 output.", @"Enable AC3 Passthrough description"), 
     113                                                                                                BRLocalizedString(@"Tells Sapphire that you want to use directory instead of filenames for movie lookup", @"Enable Directory lookup description"), 
    111114                                                                                                BRLocalizedString(@"Tells Sapphire to not report any anonymous information on how you use Sapphire. Anonymous reporting enables us to improve the plugin for future use.", @"Disable the anonymous reporting description"), nil]; 
    112115                 
     
    127130                                                                                                        ENABLE_FAST_SWITCHING_KEY, 
    128131                                                                                                        USE_AC3_PASSTHROUGH, 
     132                                                                                                        ENABLE_DIR_LOOKUP, 
    129133                                                                                                        DISABLE_ANON_KEY, nil]; 
    130134        SapphireTheme *theme = [SapphireTheme sharedTheme]; 
     
    145149                                                                                                [theme gem:FAST_GEM_KEY], 
    146150                                                                                                [theme gem:AC3_GEM_KEY], 
     151                                                                                                [theme gem:IMDB_GEM_KEY], 
    147152                                                                                                [theme gem:REPORT_GEM_KEY], nil];                
    148153         
     
    161166                [NSNumber numberWithBool:YES], ENABLE_FAST_SWITCHING_KEY, 
    162167                [NSNumber numberWithBool:NO], USE_AC3_PASSTHROUGH, 
     168                [NSNumber numberWithBool:NO], ENABLE_DIR_LOOKUP, 
    163169                [NSNumber numberWithBool:NO], DISABLE_ANON_KEY, 
    164170                [NSNumber numberWithInt:NSNotFound], LAST_PREDICATE, 
     
    282288        return [self boolForKey:ENABLE_FAST_SWITCHING_KEY]; 
    283289 
     290} 
     291 
     292- (BOOL)dirLookup 
     293{ 
     294        return [self boolForKey:ENABLE_DIR_LOOKUP]; 
     295         
    284296} 
    285297