#listenbrainz

/

      • metadataismydrug has quit
      • 2025-02-01 03212, 2025

      • jasje[m] joined the channel
      • 2025-02-01 03213, 2025

      • jasje[m]
        Hello everyone, ListenBrainz Android v2.8.0 is out with tons of fixes and improvements. You can get it from instantly from the following link:
      • 2025-02-01 03213, 2025

      • jasje[m]
      • 2025-02-01 03213, 2025

      • jasje[m]
        F-Droid and Play-store publishings will be updated shortly.
      • 2025-02-01 03247, 2025

      • RichardDegenne[m joined the channel
      • 2025-02-01 03247, 2025

      • RichardDegenne[m
        A couple of weeks ago, I started working on a Ruby client for the API, and I'm proud to announce that the very first version was just released! 🥳... (full message at <https://matrix.chatbrainz.org/_matrix/media/v3/download/chatbrainz.org/hVMGWrDHAkCdxBfzJHtJXGZp>)
      • 2025-02-01 03256, 2025

      • rustynova[m] joined the channel
      • 2025-02-01 03257, 2025

      • rustynova[m]
        Welcome to the API client club
      • 2025-02-01 03248, 2025

      • rustynova[m]
        If you need help with typings, I can help a bit as I'm maintaining the rust API client a bit
      • 2025-02-01 03230, 2025

      • RichardDegenne[m
        <rustynova[m]> "If you need help with typings, I..." <- Thanks! I'm using the Swagger docs combined with the results I get from my own data, and it's good enough for the time being ^^
      • 2025-02-01 03216, 2025

      • rustynova[m]
        THERE'S SWAGGER DOCS!? WHERE!?
      • 2025-02-01 03216, 2025

      • rustynova[m]
        I've been struggling with empirical results for a long time, and I think there might still have some missing fields or optional fields marked unoptional
      • 2025-02-01 03255, 2025

      • RichardDegenne[m
      • 2025-02-01 03207, 2025

      • RichardDegenne[m
        I raised the question of required fields with the maintainer of the doc the other day.
      • 2025-02-01 03207, 2025

      • RichardDegenne[m
      • 2025-02-01 03220, 2025

      • rustynova[m]
        Oh that's new!
      • 2025-02-01 03255, 2025

      • aereaux
        Is there some sort of recommended JS listens submission library? (Via a musicbrainz ID)
      • 2025-02-01 03243, 2025

      • RichardDegenne[m
        I don't know about JS, but there's a brand new Ruby one 😂
      • 2025-02-01 03205, 2025

      • RichardDegenne[m
        There are a bunch of clients listed here, but no JS, unfortunately.
      • 2025-02-01 03205, 2025

      • RichardDegenne[m
      • 2025-02-01 03219, 2025

      • aereaux
        Yeah, I saw that. I don't suppose whatever is used by the manual addition feature of the website is available externally?
      • 2025-02-01 03219, 2025

      • metadataismydrug joined the channel
      • 2025-02-01 03219, 2025

      • metadataismydrug
      • 2025-02-01 03217, 2025

      • RichardDegenne[m
        <aereaux> "Yeah, I saw that. I don't..." <- There is an API that allows you to do an the things the website does
      • 2025-02-01 03224, 2025

      • RichardDegenne[m
        For instance, if you want to submit listens, all you have to do is a POST HTTP request to `https://api listenbrainz.org/1/submit-listens`.
      • 2025-02-01 03224, 2025

      • RichardDegenne[m
        See the documation here.
      • 2025-02-01 03224, 2025

      • RichardDegenne[m
      • 2025-02-01 03233, 2025

      • aereaux
        Yeah, I know, I've accessed the API from python and rust. I'm wondering if there's a javascript library that will make it easier, especially getting all the info from MB like the UI does
      • 2025-02-01 03205, 2025

      • RichardDegenne[m
        Given the docs, it seems that a JS client doesn't exist... Yet. ;)
      • 2025-02-01 03257, 2025

      • rustynova[m]
        Try seeing on NPM is there's anything?
      • 2025-02-01 03246, 2025

      • rustynova[m]
        Although if you need more info than LB provide, you may need to look into and MB library too
      • 2025-02-01 03202, 2025

      • RichardDegenne[m
        There is one, but it hasn't been updated in 7 years :/
      • 2025-02-01 03202, 2025

      • RichardDegenne[m
      • 2025-02-01 03248, 2025

      • rustynova[m]
        Sad.
      • 2025-02-01 03248, 2025

      • rustynova[m]
        Although if you use JS, you can get away with *not* using a library. Just use axios and send the request, then use the API docs to get what you need.
      • 2025-02-01 03248, 2025

      • rustynova[m]
        If it was typescript, it would be harder to get type safety, but JS is just so permissive that I don't thing a library is really needed.
      • 2025-02-01 03225, 2025

      • aereaux
        I was looking at the code directly as it provides almost exactly what I would need: https://github.com/metabrainz/listenbrainz-server… . I don't really use typescript or react, so I don't really know where I'd start to use it externally
      • 2025-02-01 03207, 2025

      • rustynova[m]
        That's the code for the "add release" ui. Not an API.
      • 2025-02-01 03207, 2025

      • rustynova[m]
      • 2025-02-01 03207, 2025

      • rustynova[m]
        You can try to look at brainzbot for inspiration. It's a discord bot that fetches stuff directly from LB: https://github.com/coopw1/BrainzBot/tree/main/src…
      • 2025-02-01 03244, 2025

      • aereaux
        Yeah, I know, it's the code to add an album listen, and it does everything I want except for being able to easily select a side of a vinyl record. I'm just not sure how tightly coupled it is to the rest of the LB code