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!

          [LB-1777] Artist origin map "play something from this 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 ?

          Aerozol added a comment -

          Hmm you're right - I'm certain there is a way to make the playlist use "AND" instead of "OR" (so both statements have to be true for a recording to be added), but I can't remember and I can't figure it out from the docs: https://troi.readthedocs.io/en/latest/lb_radio.html

          Aerozol added a comment - Hmm you're right - I'm certain there is a way to make the playlist use "AND" instead of "OR" (so both statements have to be true for a recording to be added), but I can't remember and I can't figure it out from the docs: https://troi.readthedocs.io/en/latest/lb_radio.html

          holycow23 added a comment - - edited

          The attached Radio query generates a mix of songs from New Zealand and Your own listens (from around the world) but not your listens from new zealand as far as I know so not sure if the My New Zealand button would just have songs from New Zealand Origin.

          holycow23 added a comment - - edited The attached Radio query generates a mix of songs from New Zealand and Your own listens (from around the world) but not your listens from new zealand as far as I know so not sure if the My New Zealand button would just have songs from New Zealand Origin.

          Aerozol added a comment -

          I don't know about a new page, just to add a play button. If we were adding more functions I think that would be cool, but otherwise it feels like duplication + hiding away a feature. We're not hurting for space when a user clicks on a country, are we?

          The following mockup is a through re. how it could be made clearer - it assumes that this playlist prompt generates what we want for the personal playlists:

          stats:aerozol::week country:(new zealand)
          

          P.S. Another "simple" ticket that turns out not to be that simple

          Aerozol added a comment - I don't know about a new page, just to add a play button. If we were adding more functions I think that would be cool, but otherwise it feels like duplication + hiding away a feature. We're not hurting for space when a user clicks on a country, are we? The following mockup is a through re. how it could be made clearer - it assumes that this playlist prompt generates what we want for the personal playlists: stats:aerozol::week country:( new zealand) P.S. Another "simple" ticket that turns out not to be that simple

          holycow23 added a comment -

          I thought of two options to integrate this functionality:

          1. What if we just showed this button of "Play India" if the stats are "Global". 
          2. If a new page in the explore section then we could just show the same map using nivo and on click it plays the country and we could add like an info rollover explaining what would be played.

          holycow23 added a comment - I thought of two options to integrate this functionality: What if we just showed this button of "Play India" if the stats are "Global".  If a new page in the explore section then we could just show the same map using nivo and on click it plays the country and we could add like an info rollover explaining what would be played.

          Monkey added a comment -

          All the plans outlined below seem great IMHO!

          I don't really have much feedback at this point, other than it feels like this should be a separate page in the Explore section.
          This echoes the possibly-confusing aspect Aerozol pointed out: when I click that "Play India" button, it will play a random track from India, but not from my listens from Indian artists.
          For that reason I would keep it separate, and add a link to this new "World Explorer" page from the personal stats.

          That is, until there is a way for us to combine filters in such a way that troi can generate a playlist of my listens from India from my stats.

          Monkey added a comment - All the plans outlined below seem great IMHO! I don't really have much feedback at this point, other than it feels like this should be a separate page in the Explore section. This echoes the possibly-confusing aspect Aerozol pointed out: when I click that "Play India" button, it will play a random track from India, but not from my listens from Indian artists. For that reason I would keep it separate, and add a link to this new "World Explorer" page from the personal stats. That is, until there is a way for us to combine filters in such a way that troi can generate a playlist of my listens from India from my stats.

          holycow23 added a comment - - edited

          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 added a comment - - edited 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.

          Aerozol added a comment - - edited

          One song per country: https://musicbrainz.org/statistics/countries
          Only skipping those with 0 artists (5 countries currently), so a playlist with 253 artists/countries and 253 songs. 252 if we take out artists set to [worldwide].

          P.S. This may expose some issues and weaknesses in MB's artist-country data - especially for countries with very few artists - but it is likely to lead to users fixing or improving the data so I am okay with that.

          Edit: I wasn't aware of max_recordings! That seems to do what we want?

          Aerozol added a comment - - edited One song per country: https://musicbrainz.org/statistics/countries Only skipping those with 0 artists (5 countries currently), so a playlist with 253 artists/countries and 253 songs. 252 if we take out artists set to [worldwide] . P.S. This may expose some issues and weaknesses in MB's artist-country data - especially for countries with very few artists - but it is likely to lead to users fixing or improving the data so I am okay with that. Edit: I wasn't aware of max_recordings! That seems to do what we want?

          Aerozol added a comment -

          Hmm okay, 1 song per country would be much nicer. But FYI I would rather have a mix of 50 from each than nothing!

          We should still wait on Monkey's feedback before proceeding, as well.

          Perhaps in the long term we could request a function be added to the radio, like count:option, to allow for more granular control over the number of tracks, not just weight:option. Are you still keen to play with new radio stuff rob?

          Aerozol added a comment - Hmm okay, 1 song per country would be much nicer. But FYI I would rather have a mix of 50 from each than nothing! We should still wait on Monkey's feedback before proceeding, as well. Perhaps in the long term we could request a function be added to the radio, like count:option , to allow for more granular control over the number of tracks, not just weight:option. Are you still keen to play with new radio stuff rob ?

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

              Created:
              Updated:

                Version Package