Removed watermark free support
Since musically API is not working anymore, the version of code now only supports watermarked video downloading.
This commit is contained in:
parent
c8f35feee8
commit
0c47ce464a
@ -124,8 +124,9 @@ function getContent($url)
|
|||||||
$contentURL = explode("\"",$check[1])[0];
|
$contentURL = explode("\"",$check[1])[0];
|
||||||
$thumb = explode("\"",explode("\"thumbnailUrl\":[\"", $resp)[1])[0];
|
$thumb = explode("\"",explode("\"thumbnailUrl\":[\"", $resp)[1])[0];
|
||||||
$username = explode("/",explode("@",explode("\"",explode("\"url\":\"", $resp)[1])[0])[1])[0];
|
$username = explode("/",explode("@",explode("\"",explode("\"url\":\"", $resp)[1])[0])[1])[0];
|
||||||
$videoKey = getKey($contentURL);
|
/* Below code was for watermark free, but its not working currently */
|
||||||
$cleanVideo = "https://api2.musical.ly/aweme/v1/playwm/?video_id=$videoKey";
|
//$videoKey = getKey($contentURL);
|
||||||
|
//$cleanVideo = "https://api2.musical.ly/aweme/v1/playwm/?video_id=$videoKey";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
@ -140,7 +141,7 @@ function getContent($url)
|
|||||||
<div class="col-sm-5 col-md-5 col-lg-5 text-center"><img width="250px" height="250px" src="<?php echo $thumb; ?>"></div>
|
<div class="col-sm-5 col-md-5 col-lg-5 text-center"><img width="250px" height="250px" src="<?php echo $thumb; ?>"></div>
|
||||||
<div class="col-sm-6 col-md-6 col-lg-6 text-center mt-5"><ul style="list-style: none;padding: 0px">
|
<div class="col-sm-6 col-md-6 col-lg-6 text-center mt-5"><ul style="list-style: none;padding: 0px">
|
||||||
<li>a video by <b>@<?php echo $username; ?></b></li>
|
<li>a video by <b>@<?php echo $username; ?></b></li>
|
||||||
<li><button class="btn btn-primary mt-3" onclick="window.location.href='<?php echo $contentURL; ?>'">Download Video</button> <button class="btn btn-info mt-3" onclick="window.location.href='<?php echo $cleanVideo; ?>'">Download Watermark Free!</button></li>
|
<li><button class="btn btn-primary mt-3" onclick="window.location.href='<?php echo $contentURL; ?>'">Download Video</button><!-- <button class="btn btn-info mt-3" onclick="window.location.href='<?php echo $cleanVideo; ?>'">Download Watermark Free!</button>--></li>
|
||||||
<li><div class="alert alert-primary mb-0 mt-3">If the video opens directly, try saving it by pressing CTRL+S or on phone, save from three dots in the bottom left corner</div></li>
|
<li><div class="alert alert-primary mb-0 mt-3">If the video opens directly, try saving it by pressing CTRL+S or on phone, save from three dots in the bottom left corner</div></li>
|
||||||
</ul></div>
|
</ul></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user