From fab4a1a999ce8dad30138a7987b6f05fc586440b Mon Sep 17 00:00:00 2001 From: metoule Date: Sun, 6 Feb 2022 19:31:55 +0100 Subject: [PATCH] Fix broken favorite button (only works for songs, not yet for radios and podcasts). Partial fix for #10. --- scripts/deezer/player_observer.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/deezer/player_observer.js b/scripts/deezer/player_observer.js index 18a5412..d32422d 100644 --- a/scripts/deezer/player_observer.js +++ b/scripts/deezer/player_observer.js @@ -161,13 +161,7 @@ function deezerControlMethod_next() function deezerControlMethod_like() { "use strict"; - var songId = dzPlayer.getCurrentSong('SNG_ID'), - data = { type: 'song', id: songId }; - - if (userData.isFavorite('song', songId)) - favorite.remove(data); - else - favorite.add(data); + $('.track-actions button.svg-icon-group-btn.option-btn').click(); } function deezerControlMethod_linkCurrentSong()