forked from 0x2620/pandora
remove debug
This commit is contained in:
parent
86ecb97a29
commit
d43c9abf76
1 changed files with 3 additions and 3 deletions
|
@ -72,15 +72,15 @@ def api_update(request):
|
||||||
volume, created = models.Volume.objects.get_or_create(user=user, name=data['volume'])
|
volume, created = models.Volume.objects.get_or_create(user=user, name=data['volume'])
|
||||||
all_files = []
|
all_files = []
|
||||||
for f in data['files']:
|
for f in data['files']:
|
||||||
print f
|
#print f
|
||||||
path = f['path']
|
path = f['path']
|
||||||
folder = path.split('/')
|
folder = path.split('/')
|
||||||
name = folder.pop()
|
name = folder.pop()
|
||||||
if folder and folder[-1] in ('Extras', 'Versions', 'DVDs'):
|
if folder and folder[-1] in ('Extras', 'Versions', 'DVDs'):
|
||||||
name = '/'.join([folder.pop(), name])
|
name = '/'.join([folder.pop(), name])
|
||||||
folder = '/'.join(folder)
|
folder = '/'.join(folder)
|
||||||
print folder
|
#print folder
|
||||||
print name
|
#print name
|
||||||
f['folder'] = folder
|
f['folder'] = folder
|
||||||
f['name'] = name
|
f['name'] = name
|
||||||
oshash = f['oshash']
|
oshash = f['oshash']
|
||||||
|
|
Loading…
Reference in a new issue