forked from 0x2620/pandora
store full path info
This commit is contained in:
parent
f3605569fa
commit
69af82bd9f
2 changed files with 33 additions and 25 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue