store full path info

This commit is contained in:
j 2012-09-12 11:44:22 +02:00
commit 69af82bd9f
2 changed files with 33 additions and 25 deletions

View file

@ -402,11 +402,9 @@ def editFile(request):
#FIXME: is this to slow to run sync?
f.item.update_selected()
f.item.update_wanted()
for key in ('extension', 'language', 'part', 'partTitle', 'version'):
for key in ('episodes', 'extension', 'language', 'part', 'partTitle', 'version'):
if key in data:
setattr(f,
re.sub('([A-Z])', lambda m: '_%s' % m.groups()[0].lower(), key),
data[key])
f.path_info[key] = data[key]
update = True
if update:
f.save()