From cd36ec8849286192e2c356e4024247ba8dc46e84 Mon Sep 17 00:00:00 2001 From: Tufayel Ahmed <39314838+TufayelLUS@users.noreply.github.com> Date: Fri, 23 Oct 2020 16:01:48 +0600 Subject: [PATCH] Applied a fix on parser Based on the source code update, the parser is updated accordingly. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ad8917a..642ff4f 100644 --- a/index.php +++ b/index.php @@ -189,12 +189,12 @@ function getContent($url, $geturl = false) $url = trim($_POST['tiktok-url']); $resp = getContent($url); //echo "$resp"; - $check = explode('video":{"urls":["', $resp); + $check = explode('"playAddr":"', $resp); if (count($check) > 1){ $contentURL = explode("\"",$check[1])[0]; $thumb = explode("\"",explode('og:image" content="', $resp)[1])[0]; $username = explode('/',explode('"$pageUrl":"/@', $resp)[1])[0]; - $create_time = explode('"', explode('"createTime":"', $resp)[1])[0]; + $create_time = explode(',', explode('"createTime":', $resp)[1])[0]; $dt = new DateTime("@$create_time"); $create_time = $dt->format("d M Y H:i:s A"); $videoKey = getKey($contentURL);