diff --git a/README.md b/README.md index 1265c10..6317837 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ If you didn't install Maloja from the package (and therefore don't have it in `/ ### Native API -If you use Plex Web or Youtube Music on Chromium, you can use the included extension (also available on the [Chrome Web Store](https://chrome.google.com/webstore/detail/maloja-scrobbler/cfnbifdmgbnaalphodcbandoopgbfeeh)). Make sure to enter the random key Maloja generates on first startup in the extension settings. +If you use Plex Web, Spotify, Bandcamp or Youtube Music on Chromium, you can use the included extension (also available on the [Chrome Web Store](https://chrome.google.com/webstore/detail/maloja-scrobbler/cfnbifdmgbnaalphodcbandoopgbfeeh)). Make sure to enter the random key Maloja generates on first startup in the extension settings. If you want to implement your own method of scrobbling, it's very simple: You only need one POST request to `/api/newscrobble` with the keys `artist`, `title` and `key` - either as form-data or json. diff --git a/scrobblers/chromium-generic/background.js b/scrobblers/chromium-generic/background.js index 9806105..a215562 100644 --- a/scrobblers/chromium-generic/background.js +++ b/scrobblers/chromium-generic/background.js @@ -28,6 +28,12 @@ pages = { "https://open.spotify.com" ], "script":"spotify.js" + }, + "Bandcamp":{ + "patterns":[ + "bandcamp.com" + ], + "script":"bandcamp.js" } } @@ -51,7 +57,7 @@ function onTabUpdated(tabId, changeInfo, tab) { patterns = pages[page]["patterns"]; //console.log("Page was managed by a " + page + " manager") for (var i=0;i