Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1777

Artist origin map "play something from this country"

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      Combining the powers of the artist origins map and LB Radio!

      When you click on a country, a little button at the bottom with "Play [country]" would be cool. It would generate a playlist with a simple prompt like "country:(Mali)" and start playing it.

      We should also enable clicking on countries with 0 plays, for this purpose.

      Stretch goal: A "play the world" button (or just a nondescript play button in the corner of the map) which has a prompt for a playlist containing all the countries.

      Super overachiever stretch goal: Probably should be another ticket, but while I'm here... light up the country squares when something from that country is currently playing!

        1. image-2025-04-06-13-54-15-536.png
          image-2025-04-06-13-54-15-536.png
          59 kB
        2. india overhaul.png
          india overhaul.png
          132 kB
        3. play the world.png
          play the world.png
          280 kB
        4. screenshot-1.png
          screenshot-1.png
          26 kB

          [LB-1777] Artist origin map "play something from this country"

          GitHub Bot added a comment -

          See code changes in pull request #3257 submitted by granth23.

          GitHub Bot added a comment - See code changes in pull request #3257 submitted by granth23 .

          Aerozol added a comment -

          btw if this is getting into the weeds and sounding super annoying, you really are okay to just leave it blank!

          I like to include challenges in my mockups, it is always okay to question whether they are really needed.

          Aerozol added a comment - btw if this is getting into the weeds and sounding super annoying, you really are okay to just leave it blank! I like to include challenges in my mockups, it is always okay to question whether they are really needed.

          Aerozol added a comment -

          As said, we can leave it blank but also:

          Not sure what we could hardcode. Maybe one of these (kinda useless but looks interesting!)

          • Location (lat/long or 38°33′N 68°48′E)
          • Area (e.g. 143,100 km2)
            They are available via Wikipedia and are unlikely to ever change, but would be quite a bit of manual cutting and pasting!

          Aerozol added a comment - As said, we can leave it blank but also: Not sure what we could hardcode. Maybe one of these (kinda useless but looks interesting!) Location (lat/long or 38°33′N 68°48′E) Area (e.g. 143,100 km2) They are available via Wikipedia and are unlikely to ever change, but would be quite a bit of manual cutting and pasting!

          holycow23 added a comment -

          It could be a hectic process for a small detail so could it be replaced with something else or could we just go ahead without that for now?

          holycow23 added a comment - It could be a hectic process for a small detail so could it be replaced with something else or could we just go ahead without that for now?

          Monkey added a comment -

          We can't fetch those stats unfortunately. No API endpoints for it.
          We could potentially add new endpoints in listenbrainz to fetch that data from the MB database, but at this point it's starting to look like a big job for a small detail...

          Monkey added a comment - We can't fetch those stats unfortunately. No API endpoints for it. We could potentially add new endpoints in listenbrainz to fetch that data from the MB database, but at this point it's starting to look like a big job for a small detail...

          Aerozol added a comment -

          Looks great holycow23!

          The artist count is from: https://musicbrainz.org/statistics/countries
          Which presumably we can fetch?

          But TBH I was just filling a space - if it's too complicated we could put something else there? All of the actual fun/interesting stuff (like the countries top listened artist, or the MB wikipedia link) would require backend stuff/fetching.

          Not sure what we could hardcode. Maybe one of these (kinda useless but looks interesting!)

          • Location (lat/long or 38°33′N 68°48′E)
          • Area (e.g. 143,100 km2)

          Aerozol added a comment - Looks great holycow23 ! The artist count is from: https://musicbrainz.org/statistics/countries Which presumably we can fetch? But TBH I was just filling a space - if it's too complicated we could put something else there? All of the actual fun/interesting stuff (like the countries top listened artist, or the MB wikipedia link) would require backend stuff/fetching. Not sure what we could hardcode. Maybe one of these (kinda useless but looks interesting!) Location (lat/long or 38°33′N 68°48′E) Area (e.g. 143,100 km2)

          Monkey added a comment -

          I think you are right, adding an entirely new page will hide the feature away.
          Let's add it in the existing map as you suggested, and revisit it at a later date when we have more related features (like the "personal stats + country" playlists).

          Monkey added a comment - I think you are right, adding an entirely new page will hide the feature away. Let's add it in the existing map as you suggested, and revisit it at a later date when we have more related features (like the "personal stats + country" playlists).

          holycow23 added a comment - - edited

          Does this look nice and could you help me with fetching the Artists count for the country

          holycow23 added a comment - - edited Does this look nice and could you help me with fetching the Artists count for the country

          holycow23 added a comment -

          Yeah I went through the codebase too, couldn't find a solution for "and" so for now we could ahead with just the "Play India" button.

          holycow23 added a comment - Yeah I went through the codebase too, couldn't find a solution for "and" so for now we could ahead with just the "Play India" button.

          Aerozol added a comment -

          Unfortunately mayhem has confirmed there is no way to have 'country' AND 'user.

          So we would just have the one "play india" play button. I am okay with this though. Or do you still think it is confusing, with the proposed updated layout, mr_monkey?

          Aerozol added a comment - Unfortunately mayhem has confirmed there is no way to have 'country' AND 'user. So we would just have the one "play india" play button. I am okay with this though. Or do you still think it is confusing, with the proposed updated layout, mr_monkey ?

            holycow23 holycow23
            aerozol Aerozol
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Version Package