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"

          holycow23 made changes -
          Attachment New: screenshot-1.png [ 17254 ]
          Aerozol made changes -
          Attachment New: india overhaul.png [ 17251 ]
          holycow23 made changes -
          Comment [  

          While exploring the codebase, I noticed that the current implementation of {{troi}} appears to only support a {{min_recordings}} parameter. From what I can tell, there doesn’t seem to be a built-in way to enforce a *maximum* number of recordings per country—for example, limiting it to {*}1 song per country{*}. I might be missing something, so if there _is_ a way to configure this with the existing structure, please feel free to correct me. ]
          holycow23 made changes -
          Comment [ I could start with 1 song per country but what all countries are we looking at, is it just the countries with some artist data or even those with no artist data. If those without any artist data as well are considered then are we taking random 50 countries?

          And for 1 song per country adding a filter of "max_recordings": 1 [here|https://github.com/granth23/listenbrainz-server/blob/LB-1777--Artist-origin-map-%22play-something-from-this-country%22/listenbrainz/webserver/views/explore_api.py#L182] might work  ]
          Aerozol made changes -
          Attachment New: play the world.png [ 17183 ]
          holycow23 made changes -
          Attachment New: image-2025-04-06-13-54-15-536.png [ 17182 ]
          holycow23 made changes -
          Attachment Original: image-2025-04-06-13-53-46-855.png [ 17181 ]
          holycow23 made changes -
          Attachment New: image-2025-04-06-13-53-46-855.png [ 17181 ]
          holycow23 made changes -
          Assignee New: holycow23 [ holycow23 ]
          Aerozol made changes -
          Link New: This issue is related to LB-671 [ LB-671 ]

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

              Created:
              Updated:

                Version Package