-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
not using sumjay's jiosaavn api anymore, now fetching everything from…
… jiosaavn.com Fetching every details from jiosaavn.com/api.php however this is proxied with cloudflare workers.
- Loading branch information
Showing
5 changed files
with
104 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
/*! | ||
* Made by Tuhin Kanti Pal | ||
* No More using Jiosaavn API by Sumanjay, Musicder is now fetch every Details from jiosaavn.com (Proxied using cloudflare worker) | ||
* Visit https://tu.hin.life | ||
*/ | ||
|
||
let params = new URLSearchParams(location.search); | ||
var name = params.get('n'); | ||
var lnk = params.get('link'); | ||
var id = params.get('id'); | ||
|
||
document.getElementById("songname").innerHTML = "Download " + name; | ||
document.title = "Download " + name; | ||
|
||
//96 kbps replace | ||
var ninesix = lnk.replace("_320", "_96") ; | ||
document.getElementById("qone").href = ninesix ; | ||
|
||
//128 kbps replace | ||
var onetwoeight = lnk.replace("_320", "_160") ; | ||
document.getElementById("qtwo").href = onetwoeight ; | ||
|
||
//320 kbps | ||
document.getElementById("qthree").href = lnk ; | ||
var xmlhttp = new XMLHttpRequest(); | ||
xmlhttp.onreadystatechange = function () { | ||
if (this.readyState == 4 && this.status == 200) { | ||
var datarawo = (this.responseText); | ||
var dataraw = datarawo.replace(id, 'tuhinr'); | ||
document.getElementById('content').style.display = 'block'; | ||
document.getElementById('loads').style.display = 'none'; | ||
var data = JSON.parse(dataraw); | ||
var songname = data.tuhinr.song; | ||
var link = data.tuhinr.tuhindownloadlink; | ||
document.title = "Download " + songname; | ||
document.getElementById("songname").innerHTML = "Download " + songname; | ||
document.getElementById("qone").href = link; | ||
var linkosz = link.replace("_96", "_160"); | ||
document.getElementById("qtwo").href = linkosz; | ||
var linkttz = link.replace("_96", "_320"); | ||
document.getElementById("qthree").href = linkttz; | ||
} | ||
}; | ||
xmlhttp.open("GET", "https://dldapi.musicder.tk/?pids=" + id, true); | ||
xmlhttp.send(); | ||
|
||
/*! | ||
* Made by Tuhin Kanti Pal | ||
* No More using Jiosaavn API by Sumanjay, Musicder is now fetch every Details from jiosaavn.com (Proxied using cloudflare worker) | ||
* Visit https://tu.hin.life | ||
*/ | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90dd279
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: