Skip to content

feat: Handle metadata in streams in a way more consistent with streamed local files #150

Description

@ghaspias

Is your feature request related to a problem? Please describe.
I add tracks to mpd with an external script which are served (individually) over http. These are untagged files, but they are being tagged upon enqueing via addtagid() calls. However, Cantata still shows them differently from the internally streamed files: the latter are grouped under the Album name, while the former are grouped under a generic Streams label. The metadata in each track is also presented differently. The screenshot below shows this:

Image

(the tracks under "Big Science (1987)" are local files added from Cantata, the ones under "Streams" are added by my script)

Describe the solution you'd like
I'd like that when streaming (http) tracks have a common "Album" tag, they should be presented in the same way as other tracks from the database or local files.

Describe alternatives you've considered
I tried to mimic the way Cantata encodes the metadata in the url itself, but I only makes things worse, no metadata is show in that case. The last four streams/tracks in the image have the metadata included in the url, except for the 'file=C:...' parameter. Example:

 mpc add 'http://raspberrypi.lan:8766/11362171/11362185?album=Big%20Science&artist=Laurie%20Anderson&albumartist=Laurie%20Anderson&composer=Laurie%20Anderson&title=O%20Superman&genre=Avant-garde&year=1982&time=4015&track=6&id=-1&cantata=song'

Additional context
Other mpd clients show the metadata added to my streams. Below is part of the same queue in MPDClient:

Image

Cantata also has the metadata correctly, as seen in the 'tooltip':

Image

I also note that the track name for my streams is not displayed (shows 'Unknown') while playing, while the artist and track name are shown where usually artist and album appears:

Image

My server those url point to also serves album covers ("http://raspberrypi.lan:8766/11362171/cover.*"), but they aren't being fetched by Cantata: MPDClient does fetch and displays the cover for the currently playing track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions