ROpdebee / mb-userscripts

Collection of userscripts for MusicBrainz
MIT License
117 stars 9 forks source link

feat(ecau): new provider musiccircle #746

Open Dr-Blank opened 7 months ago

Dr-Blank commented 7 months ago

example release on musicbrainz and its corresponding seed

i do not know much about how this userscript works, here is the most that I can work out

images links are inside div.slick-track>div.productView-img-container>div.media>img

let divs = document.querySelectorAll('div.media');
let imgLinks = [];

for (let div of divs) {
    let imgNodes = div.querySelectorAll('img');
    for (let img of imgNodes) {
        let src = img.getAttribute('src');
        imgLinks.push(src);
    }
}

console.log(imgLinks);

this code outputs the links of the images on the page pertaining to the release

i can understand if this provider is not supported since its potentially niche