include upload_date

This commit is contained in:
j 2016-08-05 17:57:40 +02:00
parent dce51305ce
commit 9a86ddce01
2 changed files with 3 additions and 0 deletions

View file

@ -52,6 +52,8 @@ def get_info(url):
for k in info_keys
if k in i and i[k]
})
if 'upload_date' in i:
info[-1]['date'] = '-'.join([i['upload_date'][:4], i['upload_date'][4:6], i['upload_date'][6:]])
return info
def add_subtitles(item, media, tmp):

View file

@ -90,6 +90,7 @@ pandora.ui.importMediaDialog = function(options) {
result.data.items.forEach(function(info) {
pandora.api.add({title: info.title}, function(result) {
var edit = {
date: info.date,
director: info.uploader ? [info.uploader] : [],
id: result.data.id,
notes: info.url,