Slight URL update on API

This commit is contained in:
Tufayel Ahmed 2020-08-11 13:29:42 +06:00 committed by GitHub
parent a98d3fb153
commit 9ed643fcf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ function getContent($url, $geturl = false)
$thumb = explode("\"",explode('og:image" content="', $resp)[1])[0]; $thumb = explode("\"",explode('og:image" content="', $resp)[1])[0];
$username = explode("/",explode("@",explode("\"",explode("\"canonicalHref\":\"", $resp)[1])[0])[1])[0]; $username = explode("/",explode("@",explode("\"",explode("\"canonicalHref\":\"", $resp)[1])[0])[1])[0];
$videoKey = getKey($contentURL); $videoKey = getKey($contentURL);
$cleanVideo = "https://api.tiktokv.com/aweme/v1/playwm/?video_id=$videoKey"; $cleanVideo = "https://api.tiktokv.com/aweme/v1/playwm/?video_id=$videoKey&line=0&ratio=default&media_type=4&vr_type=0";
$cleanVideo = getContent($cleanVideo, true); $cleanVideo = getContent($cleanVideo, true);
?> ?>