Deezer music 🎵 downloader.
Ripped from source directly.
V: 3.0.0, Made by tbb @shareshortcuts.com
Set this text to iCloud to save files on iCloud or Browser for saving on Browser app. You can also use "iCloud and Browser" to save on both of 'em 😉
When sharing from deezer, input is messed up hence we split and combine them for getting the actual urls.
Let the user know if they wanna download the content from their clipboard link and if they don't go with search!
Enter quality to download.
128/320/1411
128 - 128 kbps mp3
320 - 320 kbps mp3
1411 - 1411 kbps flac
Artists nowadays usually share artistname.lnk.to/album-name like urls for redirecting to various streaming services. If we have this on input, parse it for getting deezer urls.
If we have deezer link, just move along with downloads.
C is for top charts. You can replace this url with any of your specific charts.
If none of charts, album or playlist was selected go with default track search.
If ":" was selected it gets multiple pages else one single page was fetched. Just repeat with each and add results to variable.
Every search results have 25 results but we cut them to 10 for decreasing clutter. Specially when ":" was used it gets messy! Change the number if you want more result but don't go over 25.
From dictionary > data we get the actual tracks. Repeat with each and add to our list for downloading on next step.
Here we choose songs from our searched results. By default, we select only one song. You can enable multiple button here for selecting multiple songs.
Replace all the deezer links with their api endpoint. You shouldn't download multiple albums/playlist at the same time, only tracks are good.
Deezer have a api limit and that is 50 requests every 5 seconds. So we have to use their api slowly if we have more than 50 tracks. If we have less tracks we will fetch 'em all at once!
Here we are gonna fetch album/playlist or anything else with a single request. Please bear in mind, we cannot get more than 400 tracks from a playlist with a single request.
Remove all illegal characters from title as it mess up later saving to file.
This number are for using later for numbering tracks in order like this:
01
99
400
Set this number to 0 to disable track numbering and set it to 1 to enable numbering.
Set tracks name and number for when we would choose tracks for album or playlist.
If we have more than two tracks to download, give us an option if we wanna download 'em all or not.
Here will be the actual processing for downloads. We will repeat with each tracks and get the song from the backend server.
Hold on! I'm working my magic 😁 Single track downloads shouldn't take long. Stay on this screen for smooth downloading experience 🙂
If any of this extension files were received from our server, we would assume download was successful.