orontee / argos

Light weight front-end for Mopidy music server
GNU General Public License v3.0
23 stars 4 forks source link

Unexpected track name for playlist track #137

Closed orontee closed 1 year ago

orontee commented 1 year ago

Given a playlist specifying track names, Mopidy extract those names but Argos overwrite those names after a library lookup...

Given the playlist:

#EXTM3U
#PLAYLIST Radio France
#EXTINF:-1,France Culture
http://direct.franceculture.fr/live/franceculture-midfi.mp3
#EXTINF:-1,France Inter
http://direct.franceinter.fr/live/franceinter-midfi.mp3
#EXTINF:-1,France Musique
http://direct.francemusique.fr/live/francemusique-midfi.mp3
#EXTINF:-1,FIP
http://direct.fipradio.fr/live/fip-midfi.mp3

Mopidy parse this playlist as expected:

# Playlist lookup
POST http://192.168.1.45/mopidy/rpc
Content-Type: application/json
{"jsonrpc": "2.0", "id": 4, "method": "core.playlists.lookup", "params": {"uri": "m3u:Radio%20France%20%F0%9F%93%BB.m3u"}}

{
  "jsonrpc": "2.0",
  "id": 4,
  "result": {
    "__model__": "Playlist",
    "uri": "m3u:Radio%20France%20%F0%9F%93%BB.m3u",
    "name": "Radio France 📻",
    "tracks": [
      {
        "__model__": "Track",
        "uri": "http://direct.franceculture.fr/live/franceculture-midfi.mp3",
        "name": "France Culture"
      },
      {
        "__model__": "Track",
        "uri": "http://direct.franceinter.fr/live/franceinter-midfi.mp3",
        "name": "France Inter"
      },
      {
        "__model__": "Track",
        "uri": "http://direct.francemusique.fr/live/francemusique-midfi.mp3",
        "name": "France Musique"
      },
      {
        "__model__": "Track",
        "uri": "http://direct.fipradio.fr/live/fip-midfi.mp3",
        "name": "FIP"
      }
    ],
    "last_modified": 1682184079260
  }
}

But Argos display is wrong: image

orontee commented 1 year ago

After the fix:

image

Note that the tracklist display the track name coming from the stream which is the expected behavior.