diff --git a/app/static/js/item.js b/app/static/js/item.js index 61463aa..245bab4 100644 --- a/app/static/js/item.js +++ b/app/static/js/item.js @@ -10,6 +10,7 @@ async function loadData(id, args) { "id", "title", "director", + "source", "summary", "streams", "duration", @@ -40,6 +41,9 @@ async function loadData(id, args) { data.view = 'info' data.title = data.item.title data.byline = data.item.director ? data.item.director.join(', ') : '' + if (!data.byline && data.item.source) { + data.byline = data.item.source + } data.link = `${pandora.proto}://${data.site}/${data.item.id}/info` let poster = pandora.site.user.ui.icons == 'posters' ? 'poster' : 'icon' data.icon = `${pandora.proto}://${data.site}/${data.item.id}/${poster}.jpg` @@ -121,6 +125,9 @@ async function loadData(id, args) { data.title = data.item.title data.byline = data.item.director ? data.item.director.join(', ') : '' + if (!data.byline && data.item.source) { + data.byline = data.item.source + } 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.aspectratio = data.item.videoRatio diff --git a/app/templates/index.html b/app/templates/index.html index 60fd8bf..12b71c8 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block head %} +