Skip to content

Commit

Permalink
tiktok: use highest quality when h265 is allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed May 12, 2024
1 parent 4aa5aef commit bdcb57f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/modules/processing/services/tiktok.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit bdcb57f

Please sign in to comment.