Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[request enhancement] Get Custom Image Display with custom m3u #188

Closed
oouuppss opened this issue Mar 30, 2016 · 4 comments
Closed

[request enhancement] Get Custom Image Display with custom m3u #188

oouuppss opened this issue Mar 30, 2016 · 4 comments

Comments

@oouuppss
Copy link

Got an m3u who doesnt have some png/jpg display while listening to it.
What is the way to add custom links/html/png/jpg to it.

@jcass77
Copy link
Member

jcass77 commented Mar 31, 2016

MMW should be displaying the relevant album cover art as each track in the playlist is being played.

It first tries to retrieve the image from Mopidy via whatever backend is serving the track, and falls back to searching for the album and track name on last.fm if that fails.

If none of the above is available for the tracks that you are playing then you may have to edit the tags manually first, unless I am misunderstanding the requirement?

If you could provide a little more detail of what the m3u contains then it should be possible to identify which backend should be providing the track images.

Showing images on an m3u playlist level (and not for individual tracks) is not currently supported in Mopidy as far as I am aware and as such not something that MMW can provide.

@oouuppss
Copy link
Author

oouuppss commented Apr 2, 2016

thanx for the answer.
Actually the m3u i'm listening to is one from http://divbyzero.de/index.php/streams
it's an m3u made from an pls file.
Their Icecast server doesn't send track info.
But i could read info from their site, and perhaps pipe it into a file in my system to display it on that missing png.
Thanks anyway ;)
Good works too for this nice front end!

Same as some tunein station as FIP, only show radio logo, but we could pipe info from radio station on their web page.
tunein:station:s15200

@jcass77
Copy link
Member

jcass77 commented Apr 2, 2016

The 'correct' way of doing this might be to implement a small Mopidy backend extension for divbyzero.de (based on mopidy.stream.StreamBackend perhaps) that parses their stream directory web page and adds the relevant tags to the stream as required. Mopidy should then be able to populate the track info from there and in theory it should then show up in MMW (but I am speculating so it might turn out to be more involved than that).

Alternatively, you could probably implement a quick and really nasty hack by editing your images.js to return a URI to the local file that you piped, and then display the HTML fragment instead of an img.

I'm closing this as I think it is a little too case-specific to end up as a feature in MMW, and as mentioned above you are ideally looking for a backend extension to populate the Mopidy track models properly for the streaming service that you are using.

P.S. There are already plans afoot for enhancing the Tunein extension to include show logos (not sure if that will also cover track information).

@jcass77 jcass77 closed this as completed Apr 2, 2016
@oouuppss
Copy link
Author

oouuppss commented Apr 2, 2016

Thank you very much for this good answer.
And again nice works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants