fallback to source
This commit is contained in:
parent
4c69a332af
commit
253c313881
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block head %}
|
||||
<link rel="alternate" type="application/atom+xml" title="{{ settings.SITENAME }}" href="/atom.xml" />
|
||||
<title>{{ settings.SITENAME }}</title>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<style>
|
||||
|
|
Loading…
Reference in a new issue