musicbrainz-userscripts icon indicating copy to clipboard operation
musicbrainz-userscripts copied to clipboard

no button or anything in deezer web to import to musicbrainz

Open Goldmaster opened this issue 5 years ago • 5 comments

I am running firefox latest version and on deezer web, for example, this album https://www.deezer.com/en/album/8150102 there is no import to MusicBrainz button at the bottom or top of the album. not sure if there is an issue or I'm not looking in the right place but thought that like with importing from Discogs button, it would be fairly obvious.

Goldmaster avatar Oct 30 '20 09:10 Goldmaster

Works for me using Tampermonkey and Firefox:

Deezer screenshot

Have you tried refreshing the page in your browser? Deezer is an SPA (e.g. each page is dynamically loaded via Javascript rather than by the browser). A side effect of this is that document ready handler (which adds the MB import buttons) is only called in the first Deezer page you visit.

I have developed a workaround for this problem but unfortunately it fails intermittently and I've not been able to establish why.

atj avatar Oct 30 '20 10:10 atj

Yes, I do try refresh even with ctrl and f5 and sometimes the buttons load and then later for another album, it wouldn't load. This is on Greece monkey and tampermonkey.

However, directly installing the script produces and cross orgin request and the buttons loaded.

Goldmaster avatar Jan 20 '22 16:01 Goldmaster

However, directly installing the script produces and cross orgin request and the buttons loaded.

Can you clarify what you mean by "directly installing the script"? Does this mean the issue is resolved?

atj avatar Jan 26 '22 18:01 atj

i have found a temporary workaround in tampermonky.

I just have to go to the dashboard and select the script and selected the whole install URL (where it says raw.githubusercontent) and right-click, select open and it prompts for reinstall.

refresh the Deezer page and then tampermonkey will open a new tab and prompt for raw access or something. just select tempory as even permanent doesnt fix it.

Goldmaster avatar Jan 26 '22 18:01 Goldmaster