tiktok: use highest quality when h265 is allowed

This commit is contained in:
wukko 2024-05-12 18:04:28 +06:00
parent 4aa5aef775
commit bdcb57f9c7
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -48,8 +48,12 @@ export default async function(obj) {
images = detail.image_post_info?.images;
let playAddr = detail.video.play_addr_h264;
if ((obj.h265 || !playAddr) && detail.video.play_addr)
playAddr = detail.video.play_addr;
if (obj.h265) {
playAddr = detail.video.bit_rate[0].play_addr
}
if (!playAddr && detail.video.play_addr) {
playAddr = detail.video.play_addr
}
if (!obj.isAudioOnly && !images) {
video = playAddr.url_list[0];