SAMBL - Spotify Artist MusicBrainz Lookup

@Lioncat6 Recently the Orange color doesn’t work well on artists that have most of their releases in Hebrew.

10 albums have matching names but no associated link

When in fact those have no matching names at all.

https://lioncat6.github.io/SAMBL/artist/?spids=6IDzwVsZdjzXYLF7IDENaq&artist_mbid=332cf61d-39c7-4126-9e5d-10346219988e

I know exactly why this is happening… it should be fixed in a bit. I may or may not have forgotten not all characters are alphanumeric lol.

2 Likes

@yomo12 It should be fixed now!

1 Like

Yup! You are fast! Keep it up, I love SAMBL.

1 Like

SAMBL Updates:

  • New icons for issues:

    • Red image icon: Missing Image
      • If release is green, it can be clicked to automatically go to the cover art page of that release
    • Orange date icon: Mismatched date
    • Red date icon: Missing date
    • Red ISRC icon:
      • One or more tracks on this release is missing ISRCs, it can be clicked on green releases to open ISRChunt
  • Added configuration menu

    • Added new button to the header

    • Currently available options:

      • Show A-Tisket Button
      • Show Harmony Button
      • More coming soon… (Suggestions Please!)

    • Saving any changed options will reload the page to apply the updates

    • Menu behaves like the filter list in that it’s draggable

  • Mobile adjustments

    • Certain elements resize slightly better from smaller screens
    • Draggable menus support touch now
  • Style improvements

    • Added drop shadow to artist image
    • Forced artist image to be square
    • Added border-radius to corners of artist image
    • Artist name is actually centered to its parent now…

  • Added drop shadow to album covers on hover to hint that they can be clicked to open in a new tab
    image

  • Changed size of loaded Spotify cover priviews from 640x640 to 300x300

    • When clicked, it still opens the full-sized 640x640 image
    • Uses 1/3 ~ 1/5 compared to before of the browser cache, bandwidth, and RAM, especially useful on lower end devices
  • Track names on green and orange releases are now fetched from MB and can be searched for

5 Likes

Love the new updates!

Could ISRCHunt open in a new tab by default? Everything else does so guessing ISRCs were just an oversight.

3 Likes

Should be fixed now!

2 Likes

SAMBL Updates

  • Fixed an issue stemming from MusicBrainz not sending all the releases in one API request, by no longer assuming that it did and actually counting how many entities SAMBL receives

    • I don’t know if this is an API issue with MB or just a new update, but SAMBL can handle not receiving all requested releases at once now…
    • SAMBL always tries to get 100 entities at once (image) but it seems some requests are now capped at 48

  • Add configuration for Harmony in case you didn’t want to use your saved harmony settings

1 Like

SAMBL UPDATES

  • SAMBL is being renamed to SAMBL!!!
    (for those who couldn’t see it in the acronym, I obviously changed the S for Spotify to S for streaming)
  • A new version of sambl is being developed featuring server side page rendering which will allow stuff like request caching (You can check it out here)
  • This new version of SAMBL will feature a bunch of cool tools:
    • A ‘find’ page which will let you paste in an ISRC, barcode, link, etc. (literally anything searchable on MB), and will be able to pull up related entities/information
    • An artists tab featuring pinned and recent artists, which will probably have an indicator for new releases (using local storage/cookies to keep track of what you last saw)
    • Potentially some MusixMatch functionality (Very WIP)
  • The new version of SAMBL will also (eventually) feature pulling data from other streaming sites (hence the name change)
5 Likes

New SAMBL progress update:

2 Likes

The new SAMBL is live!

Please don’t bully it :3
For context: the server is currently running on a second-lowest tier (1GB of RAM, 25GB of storage) digital ocean droplet for 6$ a month. (If you have any suggestions where I can deploy it for a better price, please let me know!)

Small note: This is the first “full stack” application I’ve ever developed, and as such, I am way in over my head on this, so any and all suggestions are very appreciated!

And also, if you would like to contribute and know your way around react/next, please do! The repo is here

New features:

  • Native Dark Mode
  • It’s made in next.js now!
  • Find page
    • Currently allows searching by MBID and ISRC
  • A lot of fetching happens server side now, meaning less failed api requests and cool things like functional url previews
    • For Example:

Coming Soon:

  • Pinned/Recent artists view
    • A sidebar to view your recently visited / pinned artists
    • Will display a badge on the icon indicating new releases
  • Finding support for URLs
  • Data export function
    • Technically it does work right now if you open your browser dev tools
    • When polished will allow you to select albums to export
    • Will eventually work on any page that has a list of items (/search, /artist, /find)
  • Server side Caching
  • Multi-artist fetching (need to re-implement it)

BTW, this update most definitely breaks any and all userscripts for SAMBL.

TLDR:

  • SAMBL is better now
  • I am way in over my head with this :slight_smile:
  • Sever has a chance of crashing probably
6 Likes

I’ve had luck so far with netcup. They’re a German company and signing up from the US took a few days, but a nice (6 vCore, 8 GB RAM, 256 GB SSD) ARM64 VPS is about $6 USD/mo. They have x86 VPSes too and I think the pricing is a bit lower if the server is in one of their European locations. The web interface for managing the server is janky but adequate.

1 Like

Argh. It’s using the page router. I haven’t touched that thing in ages.
Any reason why pages other the new one?

1 Like

Uhh… Yeah, after looking at it, I really should be using the App router…

Eh, at least it’s not going away soon like I thought when they introduced it.
Might contribute but… I may have way too many projects…

1 Like

SAMBL Version 2.0.1

  • Added validation for all api endpoints (Yes, those exist. No, there’s no documentation yet :3)
    • (All of them are basically just proxies to various APIs used internally by SAMBL. I might add CORS later, so Spotify doesn’t get mad. I will, however, create APIs specific to SAMBL’s functionality publicly avaliable once I implement caching.)
  • Added /api/ping for down detection. And like. It’s fun. It says Pong back to you.
  • URL previews have like images and stuff for some pages now:

Also, I fixed the SAMBL button: MusicBrainz-UserScripts/Musicbrainz-Artist-SAMBL-Button.user.js at main · Lioncat6/MusicBrainz-UserScripts · GitHub

3 Likes

I have the latest script installed.

Clicking on this artists page takes me to a 404 SAMBL page.

https://sambl.lioncat6.com/artist?spids=0rcuq0mzUaleXgXxuLFPPZ&artist_mbid=38439dca-6b97-41a0-9516-b99108f455e0)

When pasting artist spotify URL directly in SAMBL it works fine.

1 Like

Yup, figured as much would happen. It’s because the URL the userscript brought you to uses spids instead of spid, which is for multiple Spotify IDs, which I haven’t re-implemented yet.

1 Like

SAMBL 2.0.2 - Boring update, just added exporting

  • Added exporting
    • Export button in tools menu toggles the display of the export buttons
    • The popup allows you to copy individual properties or the whole item

  • Added favicon.ico
  • Defined default locale
2 Likes

SAMBL Version 2.0.3

  • Implemented multi-artist fetching

  • Fixed issue with exporting the spotifyAlbumArtists property

    • Properly stringified JSON
  • Added parameter spotifyArtistNames property

    • Concatenates artist names as strings into an array
  • Change title of find page to plain text

    • Fixes issues in some fonts and in search engines
  • Added display of version number in configuration menu

  • Added tools option to export all items

    • Rename ‘Export Data’ tools option to ‘Export Items’
    • Added toast for the Export Items toggle
2 Likes