forked from 0x2620/pandora
fix poster
This commit is contained in:
parent
7ad121d912
commit
55f07ba4b7
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue