Removed support for tiktok shorturl
Please do not use any url having vm.tiktok.com as it triggers recaptcha. Thanks.
This commit is contained in:
parent
b8fd6ad54f
commit
bdc0753b2d
15
index.php
15
index.php
@ -8,7 +8,7 @@ function getContent($url)
|
|||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_HEADER => false,
|
CURLOPT_HEADER => false,
|
||||||
CURLOPT_FOLLOWLOCATION => true,
|
CURLOPT_FOLLOWLOCATION => true,
|
||||||
// Please change user agent below when the script fails to collect video
|
// Please change the user agent every time when the script stops working.
|
||||||
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36',
|
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36',
|
||||||
CURLOPT_ENCODING => "utf-8",
|
CURLOPT_ENCODING => "utf-8",
|
||||||
CURLOPT_AUTOREFERER => true,
|
CURLOPT_AUTOREFERER => true,
|
||||||
@ -107,19 +107,8 @@ function getContent($url)
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="m-5">
|
<div class="m-5">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-dark text-white" style="position: fixed; bottom: 0;width: 100%;padding:15px">Developed by <a target="_blank" href="https://www.github.com/TufayelLUS">tufayel.rocks</a> <span style="float: right;">Copyright © <?php echo date("Y"); ?></span></div>
|
<div class="bg-dark text-white" style="position: fixed; bottom: 0;width: 100%;padding:15px">Developed by <a target="_blank" href="https://www.github.com/TufayelLUS">tufayel.rocks</a> <span style="float: right;">Copyright © <?php echo date("Y"); ?></span></div>
|
||||||
<script type="text/javascript">
|
|
||||||
window.setInterval(function(){
|
|
||||||
if ($("input[name='tiktok-url']").attr("placeholder") == "https://www.tiktok.com/@username/video/1234567890123456789") {
|
|
||||||
$("input[name='tiktok-url']").attr("placeholder", "https://vm.tiktok.com/a1b2c3/");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$("input[name='tiktok-url']").attr("placeholder", "https://www.tiktok.com/@username/video/1234567890123456789");
|
|
||||||
}
|
|
||||||
}, 3000);
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user