show year/date
This commit is contained in:
parent
0b165e1f37
commit
34c4f07df1
1 changed files with 12 additions and 0 deletions
|
@ -10,6 +10,8 @@ async function loadData(id, args) {
|
||||||
"id",
|
"id",
|
||||||
"title",
|
"title",
|
||||||
"director",
|
"director",
|
||||||
|
"year",
|
||||||
|
"date",
|
||||||
"source",
|
"source",
|
||||||
"summary",
|
"summary",
|
||||||
"streams",
|
"streams",
|
||||||
|
@ -45,6 +47,11 @@ async function loadData(id, args) {
|
||||||
} else {
|
} else {
|
||||||
data.byline = data.item.director ? data.item.director.join(', ') : ''
|
data.byline = data.item.director ? data.item.director.join(', ') : ''
|
||||||
}
|
}
|
||||||
|
if (data.item.year) {
|
||||||
|
data.byline += ' (' + data.item.year + ')'
|
||||||
|
} else if (data.item.date) {
|
||||||
|
data.byline += ' (' + data.item.date.split('-')[0] + ')'
|
||||||
|
}
|
||||||
data.link = `${pandora.proto}://${data.site}/${data.item.id}/info`
|
data.link = `${pandora.proto}://${data.site}/${data.item.id}/info`
|
||||||
let poster = pandora.site.user.ui.icons == 'posters' ? 'poster' : 'icon'
|
let poster = pandora.site.user.ui.icons == 'posters' ? 'poster' : 'icon'
|
||||||
data.icon = `${pandora.proto}://${data.site}/${data.item.id}/${poster}.jpg`
|
data.icon = `${pandora.proto}://${data.site}/${data.item.id}/${poster}.jpg`
|
||||||
|
@ -135,6 +142,11 @@ async function loadData(id, args) {
|
||||||
} else {
|
} else {
|
||||||
data.byline = data.item.director ? data.item.director.join(', ') : ''
|
data.byline = data.item.director ? data.item.director.join(', ') : ''
|
||||||
}
|
}
|
||||||
|
if (data.item.year) {
|
||||||
|
data.byline += ' (' + data.item.year + ')'
|
||||||
|
} else if (data.item.date) {
|
||||||
|
data.byline += ' (' + data.item.date.split('-')[0] + ')'
|
||||||
|
}
|
||||||
data.link = `${pandora.proto}://${data.site}/${data.item.id}/${data["in"]},${data.out}`
|
data.link = `${pandora.proto}://${data.site}/${data.item.id}/${data["in"]},${data.out}`
|
||||||
data.poster = `${pandora.proto}://${data.site}/${data.item.id}/480p${data["in"]}.jpg`
|
data.poster = `${pandora.proto}://${data.site}/${data.item.id}/480p${data["in"]}.jpg`
|
||||||
data.aspectratio = data.item.videoRatio
|
data.aspectratio = data.item.videoRatio
|
||||||
|
|
Loading…
Reference in a new issue