Compare commits
2 commits
7ad121d912
...
5bf71ead09
Author | SHA1 | Date | |
---|---|---|---|
5bf71ead09 | |||
55f07ba4b7 |
2 changed files with 2 additions and 1 deletions
|
@ -255,7 +255,7 @@ async function loadEdit(id, args) {
|
|||
poster = getClip(data.edit, parseDuration(args.parts[2]))
|
||||
}
|
||||
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 {
|
||||
data.poster = data.videos[0].src.split('/48')[0] + `/${pandora.resolution}p${data.videos[0].in.toFixed(3)}.jpg`
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ function renderItemInfo(data) {
|
|||
}
|
||||
|
||||
function renderItem(data) {
|
||||
window.item = window.item || {}
|
||||
if (data.error) {
|
||||
return renderError(data)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue