Compare commits

..

2 commits

Author SHA1 Message Date
j
5bf71ead09 fallback item 2024-02-17 11:01:32 +00:00
j
55f07ba4b7 fix poster 2024-02-17 11:01:21 +00:00
2 changed files with 2 additions and 1 deletions

View file

@ -255,7 +255,7 @@ async function loadEdit(id, args) {
poster = getClip(data.edit, parseDuration(args.parts[2])) poster = getClip(data.edit, parseDuration(args.parts[2]))
} }
if (poster && poster.item) { if (poster && poster.item) {
data.poster = `${pandora.proto}://${data.site}/${poster.item}/${pandora.resolution}${poster.position.toFixed(3)}.jpg` data.poster = `${pandora.proto}://${data.site}/${poster.item}/${pandora.resolution}p${poster.position.toFixed(3)}.jpg`
} else { } else {
data.poster = data.videos[0].src.split('/48')[0] + `/${pandora.resolution}p${data.videos[0].in.toFixed(3)}.jpg` data.poster = data.videos[0].src.split('/48')[0] + `/${pandora.resolution}p${data.videos[0].in.toFixed(3)}.jpg`
} }

View file

@ -20,6 +20,7 @@ function renderItemInfo(data) {
} }
function renderItem(data) { function renderItem(data) {
window.item = window.item || {}
if (data.error) { if (data.error) {
return renderError(data) return renderError(data)
} }