Skip to content

Commit f3bcefa

Browse files
committed
Fixed worker
1 parent 52e71fa commit f3bcefa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vxtiktok-cf-worker-proxy/src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ async function getWebDataFromResponse(response) {
4444

4545
function findApiFormat(videoInfo) {
4646
const vid = videoInfo.video
47+
const addr = vid.downloadAddr == null ? vid.downloadAddrAdr : vid.playAddr
4748
return {
4849
width: vid.width,
4950
height: vid.height,
50-
url: vid.downloadAddr,
51+
url: addr,
5152
thumb: vid.cover
5253
}
5354
}

0 commit comments

Comments
 (0)