laurencee / Livestream.Monitor

A windows GUI for livestreamer/streamlink
GNU General Public License v2.0
59 stars 8 forks source link

Show stream titles in player #69

Closed phrwn closed 2 years ago

phrwn commented 2 years ago

Not sure if this is a setting or a feature request, but when I open streams in mpv it just shows the link in the header, rather than the stream title. When I open streams via Streamlink for Twitch GUI it shows the titles, so it is possible.

laurencee commented 2 years ago

Thanks for posting this issue.

Taking a look at the twitch gui code it looks like it'll be this parameter: https://github.com/streamlink/streamlink-twitch-gui/blob/fa310904daf46cfa5733d84c34968ca8bcf0d751/src/config/players.json#L106

--force-media-title \"{name} - {game} - {status}\"

I'll take a look when I have the chance. It might be easiest for me to just add a new setting field to allow for custom args to be passed into streamlink and I just set some good default values there along with a few replaceable params like {channelname} {title} {game}.

phrwn commented 2 years ago

It's definitely a useful feature, especially on streams that update their titles regularly. Thanks for looking into it.

laurencee commented 2 years ago

@phrwn So I just tested this without needing to make any app changes and it actually already works in VLC.

You just have to edit your streamlink config file and uncomment the title={author} - {category} - {title}.

Try that out and see if it just already works out of the box with MPV.

phrwn commented 2 years ago

Looks like it works with MPV too! That's great. Thanks.