Skip to content

[Youtube Music] ... Like Song feature works as dislike if is already liked #17508

@atharva-gadekar

Description

@atharva-gadekar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to one of the extensions in the Storeextension: youtube-musicIssues related to the youtube-music extensionstatus: stalledStalled due inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions