mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
tiktok: use highest quality when h265 is allowed
This commit is contained in:
parent
4aa5aef775
commit
bdcb57f9c7
1 changed files with 6 additions and 2 deletions
|
@ -48,8 +48,12 @@ export default async function(obj) {
|
||||||
images = detail.image_post_info?.images;
|
images = detail.image_post_info?.images;
|
||||||
|
|
||||||
let playAddr = detail.video.play_addr_h264;
|
let playAddr = detail.video.play_addr_h264;
|
||||||
if ((obj.h265 || !playAddr) && detail.video.play_addr)
|
if (obj.h265) {
|
||||||
playAddr = detail.video.play_addr;
|
playAddr = detail.video.bit_rate[0].play_addr
|
||||||
|
}
|
||||||
|
if (!playAddr && detail.video.play_addr) {
|
||||||
|
playAddr = detail.video.play_addr
|
||||||
|
}
|
||||||
|
|
||||||
if (!obj.isAudioOnly && !images) {
|
if (!obj.isAudioOnly && !images) {
|
||||||
video = playAddr.url_list[0];
|
video = playAddr.url_list[0];
|
||||||
|
|
Loading…
Reference in a new issue