forked from 0x2620/pandora
force itemKeys listed as default filters to be filters and print warning
This commit is contained in:
parent
0ecfe14507
commit
189c6feba9
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,13 @@ def load_config():
|
|||
if not 'folderdepth' in config['site']:
|
||||
config['site']['folderdepth'] = settings.USE_IMDB and 4 or 3
|
||||
|
||||
# enable default filters if needed
|
||||
default_filters = [f['id'] for f in config['user']['ui']['filters']]
|
||||
for key in config['itemKeys']:
|
||||
if key['id'] in default_filters and not key.get('filter'):
|
||||
key['filter'] = True
|
||||
sys.stderr.write('enabled filter for "%s" since its used as default filter.\n' % (key['id']))
|
||||
|
||||
config['keys'] = {}
|
||||
for key in config['itemKeys']:
|
||||
config['keys'][key['id']] = key
|
||||
|
@ -129,6 +136,7 @@ To fix this on Ubuntu 12.04, run:
|
|||
check the README for further details.
|
||||
|
||||
''' % AVCONV)
|
||||
|
||||
settings.CONFIG = config
|
||||
admin = len(settings.CONFIG['userLevels']) - 1
|
||||
if not 'syncdb' in sys.argv \
|
||||
|
|
Loading…
Reference in a new issue