forked from 0x2620/pandora
no tags == []
This commit is contained in:
parent
3b4da19bd2
commit
384c643326
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ def get_info(url):
|
||||||
for k in info_keys
|
for k in info_keys
|
||||||
if k in i and i[k]
|
if k in i and i[k]
|
||||||
})
|
})
|
||||||
|
if not 'tags' in info[-1]:
|
||||||
|
info[-1]['tags'] = []
|
||||||
if 'upload_date' in i:
|
if 'upload_date' in i:
|
||||||
info[-1]['date'] = '-'.join([i['upload_date'][:4], i['upload_date'][4:6], i['upload_date'][6:]])
|
info[-1]['date'] = '-'.join([i['upload_date'][:4], i['upload_date'][4:6], i['upload_date'][6:]])
|
||||||
return info
|
return info
|
||||||
|
|
Loading…
Reference in a new issue