forked from 0x2620/pandora
include upload_date
This commit is contained in:
parent
dce51305ce
commit
9a86ddce01
2 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue