Skip to content

best way to save what you love

tiktok: use highest quality when h265 is allowed

wukkobdcb57f9c74b
diff --git a/src/modules/processing/services/tiktok.js b/src/modules/processing/services/tiktok.js
index 159cfd87..b81d57d9 100644
--- a/src/modules/processing/services/tiktok.js
+++ b/src/modules/processing/services/tiktok.js
@@ -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];