tiktok: fix wrong string method name

This commit is contained in:
Damir Modyarov 2024-05-21 21:01:39 +03:00
parent d801d57a65
commit cb55dcdc14
No known key found for this signature in database

View File

@ -56,7 +56,7 @@ export default async function(obj) {
let playAddr = detail.video.playAddr;
if (obj.h265) {
const h265PlayAddr = detail.video.bitrateInfo.find(b => b.CodecType.contains("h265"))?.PlayAddr.UrlList[0]
const h265PlayAddr = detail.video.bitrateInfo.find(b => b.CodecType.includes("h265"))?.PlayAddr.UrlList[0]
playAddr = h265PlayAddr || playAddr
}