-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingextensionIssues related to one of the extensions in the StoreIssues related to one of the extensions in the Storeextension: youtube-musicIssues related to the youtube-music extensionIssues related to the youtube-music extensionstatus: stalledStalled due inactivityStalled due inactivity
Description
Extension
https://www.raycast.com/danieldbird/youtube-music
Raycast Version
1.93.0
macOS Version
14.6
Description
If a song is already liked, the like feature works as dislike, removing the song from liked collection.
I checked out the code for the same, it appears that the code simply executes a click on the like button irrespective of the state of the liked button. This is why it works as dislike.
"(document.querySelector('#like-button-renderer > tp-yt-paper-icon-button.like.style-scope.ytmusic-like-button-renderer') || document.querySelector('like-button-view-model button')).click();"This should have had an if condition to check if the song has already been liked. The feature must simply do nothing if a song is already liked.
Steps To Reproduce
Play a liked song and use the feature. This will reproduce the issue.
Current Behaviour
Like song feature behaves like dislike for already liked songs.
Expected Behaviour
Like song feature must do nothing to songs which have been already liked
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingextensionIssues related to one of the extensions in the StoreIssues related to one of the extensions in the Storeextension: youtube-musicIssues related to the youtube-music extensionIssues related to the youtube-music extensionstatus: stalledStalled due inactivityStalled due inactivity