diff --git a/deezer_downloader/web/app.py b/deezer_downloader/web/app.py index 624dfbb..f767833 100644 --- a/deezer_downloader/web/app.py +++ b/deezer_downloader/web/app.py @@ -246,9 +246,9 @@ def spotify_playlist_download(): @validate_schema("user_id", "add_to_playlist", "create_zip") def deezer_favorites_download(): """ - downloads favorite songs of a Deezer user (looks like this in the brwoser: + downloads favorite songs of a Deezer user (looks like this in the browser: https://www.deezer.com/us/profile/%%user_id%%/loved) - a subdirecotry with the name of the user_id will be created. + a subdirectory with the name of the user_id will be created. para: user_id: deezer user_id add_to_playlist: True|False (add to mpd playlist) diff --git a/deezer_downloader/web/static/js/custom.js b/deezer_downloader/web/static/js/custom.js index 2a849ed..e437219 100644 --- a/deezer_downloader/web/static/js/custom.js +++ b/deezer_downloader/web/static/js/custom.js @@ -293,6 +293,25 @@ $(document).ready(function() { }); // END DEEZER FAVORITE SONGS + // BEGIN DEEZER SONG + $("#deezer_song_download").click(function() { + deezer_download($('#deezer-song-id').val(), "track", false, false); + }); + + $("#deezer_song_zip").click(function() { + deezer_download($('#deezer-song-id').val(), "track", false, true); + }); + // END DEEZER SONG + + // BEGIN DEEZER album + $("#deezer_album_download").click(function() { + deezer_download($('#deezer-album-id').val(), "album", false, false); + }); + + $("#deezer_album_zip").click(function() { + deezer_download($('#deezer-album-id').val(), "album", false, true); + }); + // END DEEZER album function show_tab(id_nav, id_content) { // nav diff --git a/deezer_downloader/web/templates/index.html b/deezer_downloader/web/templates/index.html index 3cd37e9..c897f91 100644 --- a/deezer_downloader/web/templates/index.html +++ b/deezer_downloader/web/templates/index.html @@ -167,7 +167,7 @@