#metabrainz

/

      • Lotheric_ joined the channel
      • Lotheric has quit
      • avalos joined the channel
      • avalos
        I'm trying to link a client to the Last.fm-compatible ListenBrainz API.
      • I'm following the instructions here: listenbrainz.readthedocs.io/en/latest/users/api-compat.html
      • However, at step 8, I get: “Please use the website at listenbrainz.org.”
      • Okay, I remove the `api` subdomain, and I get “Invalid request”
      • Maybe it is the `proxy` subdomain instead? I never get a reply from the server.
      • Also, what should I put as the callback URL in step 6? `api.listenbrainz.org`, `listenbrainz.org` or `proxy.listenbrainz.org`?
      • Section “For users” says I need to skip steps 2 and 6.
      • However, where am I supposed to get the API token and secret?
      • Is the Last.fm API actually enabled in listenbrainz.org?
      • Has anyone in the world actually used this API?
      • serial-ata joined the channel
      • kepstin
        the correct url endpoint for the callback is https://listenbrainz.org/api/auth/
      • er, sorry. callback depends on app and may be omitted for a an app that isn't a webpage
      • that's the endpoint to do the authentication ^^
      • that said, it seems to be active, but it doesn't appear to behave quite like i'd expect from the last.fm docs
      • oh, i see. only the desktop auth flow is implemented, https://www.last.fm/api/desktopauth
      • that login flow should work with 'www.last.fm' replaced by 'listenbrainz.org'
      • note that this requires a desktop client that lets you change the domain to use for last.fm api in its configuration, since listenbrainz.org does not accept last.fm api requests over http and (obviously) doesn't have a tls cert that claims to be 'www.last.fm', so dns substitution will not work.
      • aerozol
      • serial-ata has quit
      • jivte joined the channel
      • jivte has quit
      • jivte joined the channel
      • vibhoo_24 joined the channel
      • jivte has quit
      • avalos
        kepstin: thanks for the reply! I'll try out those end-points. I knew I'd have issues with TLS, so I simply patched the source code in-place so that it points to ListenBrainz instead of Last.fm.
      • What I'm trying to connect is Supysonic, which has a configuration web UI that allows linking to a Last.fm account.
      • > oh, i see. only the desktop auth flow is implemented,
      • Does that mean I can't connect a web app?
      • vibhoo_24 has quit
      • rozlav has quit
      • jivte joined the channel
      • jivte
        monkey: Hey if u have time today can u review my pr's
      • bcz the work for playlist is complete only need ur help to improve it further :)
      • monkey
        Sorry, I'm away from computer today. Might have time late next week
      • jivte
        cool no problem :)
      • jivte has quit
      • mayhem
        LB Android team. We had a user leave a comment and rate the app 3 stars with this review: "Crasht leider auf meinem Gerät (Samsung M21). Freue mich darauf, wenn das ding dann läuft, besonders der lokale Musikplayer ist eine gute Idee."
      • Crashes on my devices (samsun m21). Looking forward to when its running because the local music player is a great idea."
      • your excitements seems to be doing well!
      • alastairp
        avalos: hi, right. we don't actually have oauth for submitting listens to LB yet. where did you see that only the desktop auth flow is implemented?
      • MusicBrainz should support both desktop and web flow, for submitting to LB we have a random user token that a user can copy/paste from their profile
      • oh sorry - I'm reading back further, I think you're talking about our implementation of the last.fm auth flow in LB, is that right?
      • I'll double check the guidelines that you linked to
      • Maxr1998_ joined the channel
      • Maxr1998 has quit
      • notlake joined the channel
      • notlake has quit
      • vibhoo_24 joined the channel
      • Lotheric_ is now known as Lotheric
      • vibhoo_24 has quit
      • yvanzo
        mayhem: Do you want (or not) to have another look at Weblate ToS before I submit them the suggested changes?
      • reosarevok
        yvanzo: sent one small fix to https://github.com/metabrainz/musicbrainz-serve... - I think it's ready now
      • rishav_a2z joined the channel
      • BrainzGit
        [musicbrainz-server] 14yvanzo merged pull request #2807 (03master…MBS-12837): MBS-12837: Add autoselect + sidebar for Tsutaya URLs https://github.com/metabrainz/musicbrainz-serve...
      • mayhem
        yvanzo: do you think I should? I think your judgement is fine on this.
      • yvanzo
        reosarevok: Thanks
      • mayhem: No problem, just asking as you were in the loop.
      • mayhem
        👍
      • rishav_a2z
        mayhem can i work on listenbranz-android app, i saw a issue in the app that it will not showing Recently played. can i work on it??
      • actually it has blank space to show that but its not updating.
      • jivte joined the channel
      • jasje joined the channel
      • jasje
        mayhem: The crashes occurred but we fixed them with release 1.1.1 can you tell me when did the user leave this review?
      • vibhoo_24 joined the channel
      • vibhoo_24 has quit
      • vibhoo_24 joined the channel
      • reosarevok
        alastairp, yvanzo, bitmap: documenting the json responses seems a lot more straightforward than the XML mess:
      • (the big grey section is a basic artist without any incs)
      • vibhoo_24 has quit
      • alastairp
        reosarevok: cool, is that json-schema?
      • rishav_a2z has quit
      • vlipper joined the channel
      • vlipper has quit
      • jivte has quit
      • rozlav joined the channel
      • vibhoo_24 joined the channel
      • vibhoo_24 has quit
      • hi bitmap, can you ping me when you're up? I want to create a new database in the cluster
      • Freso: hi there, were you able to get some admin docs for the ircbot/chatlogs site written?
      • zas: hi, when specifying the port that a new service listens on, should I select an unused port in constants.sh and use the `PORT_LIST` variable to substitute it in place (e.g. in services.sh)? I see many places in our config files where ports are explicitly written, or aren't listed in PORT_LIST
      • zas
        alastairp: yes, it would be better, the idea behind PORT_LIST was to avoid potential conflicts
      • new server "mingus" is now up and running, it will be used to host discourse (and to test upgrades)
      • alastairp
        OK, I'll use it! thanks
      • (port_list, not mingus)
      • Mingus Mingus Mingus Mingus Mingus <- good album
      • reosarevok
        alastairp: it's openapis slightly weird version of it
      • I think "nullable" is not standard
      • jasje has quit
      • alastairp
        reosarevok: once again they have something slightly different to everyone else, huh? :)
      • reosarevok: is the json-schema useful in other places though? Do we have one?
      • (did we have one before now)
      • reosarevok
        Apparently version 3.1 of openapi should be compatible but is still not widely supported
      • And we did not have one, but it hopefully will be useful
      • alastairp
        yeah
      • I did some experiments with monkey ages back about autogenerating typescript classes from jsonschema, for example. I can believe that'll be useful for some people
      • s/classes/types/
      • hi zas, if you have time can you please look at 2 PRs I have open on docker-server-configs? one to delete old AB code, one to add brainzbot to docker infra
      • thanks yvanzo for the AB approval
      • bitmap
        alastairp: hey, I'll document how to update the configuration for you
      • alastairp
        thanks bitmap
      • akshaaatt
        jasje MOBILE-112
      • BrainzBot
        MOBILE-112: IllegalStateException: Already resumed https://tickets.metabrainz.org/browse/MOBILE-112
      • akshaaatt
        MOBILE-113
      • BrainzBot
        MOBILE-113: NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParame... https://tickets.metabrainz.org/browse/MOBILE-113
      • akshaaatt
        MOBILE-114
      • BrainzBot
        MOBILE-114: ApplicationNotResponding: Application Not Responding for at least 5000 ms. https://tickets.metabrainz.org/browse/MOBILE-114
      • akshaaatt
        MOBILE-115
      • BrainzBot
        MOBILE-115: UnsupportedOperationException: Empty collection can't be reduced. https://tickets.metabrainz.org/browse/MOBILE-115
      • akshaaatt
        MOBILE-116
      • BrainzBot
        MOBILE-116: ArrayIndexOutOfBoundsException: length=33; index=33 https://tickets.metabrainz.org/browse/MOBILE-116
      • akshaaatt
        Oh gawd
      • Hi rishav_a2z !
      • Feel free to work on the issue. Let me know if you need any guidance
      • kellnerd joined the channel
      • bitmap
        alastairp: opened a PR in syswiki, let me know if something is unclear or broken
      • BrainzGit
        [listenbrainz-android] 14akshaaatt opened pull request #39 (03main…permissions-fix): Fixes MOBILE-115 https://github.com/metabrainz/listenbrainz-andr...
      • alastairp
        bitmap: which is current master? (how can I tell?)
      • I see your examples use floyd
      • bitmap
        yeah, right now it's floyd
      • there is a postgres function that can tell you for sure
      • alastairp
        bitmap: `createdb: error: database creation failed: ERROR: source database "template1" is being accessed by other users`
      • bitmap
        oh, right
      • I think that should be template0
      • alastairp
        can we use temeplate0?
      • right, let me try that one
      • bitmap
        maybe it won't let you connect using template0
      • alastairp
        it allowed me to make it with template0
      • bitmap
        I think there's also a database named 'postgres' you can connect to
      • oh, good
      • alastairp
        (I was using `createdb`, not connecting with psql
      • )
      • bitmap
        the pg function I referenced earlier is `select pg_is_in_recovery();` which will only return true on standbys
      • the cluster information is also stored in repmgr
      • sudo -u postgres repmgr -f /etc/repmgr.conf cluster show
      • alastairp
        you need to run this on the primary, correct?
      • bitmap
        you can can the repmgr command from either
      • can run*
      • alastairp
        is that inside the postgres container, or just locally?
      • bitmap
        inside the container, yeah
      • alastairp
        I see it, thansk
      • I opened a PR to add details to docker-postgres-cluster
      • bitmap
        something I forgot to mention in the doc: if you want to connect to this database through the standby, you have to update the same configuration files inside the standby container too
      • alastairp
        ah, got it. Any preference for which one to use? In this case we have the ircbot writing (so it needs to be the primary?) and the web interface reads (so it could be either?), but the admin of the web interface can write (so it needs to be the primary?)
      • Etua joined the channel
      • BrainzGit
        [listenbrainz-server] 14amCap1712 opened pull request #2345 (03master…yim-art-fix): LB-1201: YIM 2022 - wrong artist in top tracks image https://github.com/metabrainz/listenbrainz-serv...