-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Unescaped quotation marks when stream title/description passed to player #256
Comments
Are you running the application from the master branch? The variables-substitution has been reworked (9eac3b4) and all characters should be escaped correctly (it escaped too many chars before and didn't care about variables outside of parameter strings). When using variables inside parameter strings, only the wrapping quotation marks are now being escaped. The tests [1, 2] are working correctly (could be expanded/improved a bit, though). You could also run this from the dev-tools console and test it for yourself: var container = Ember.Application.NAMESPACES_BY_ID.App.__container__;
var stream = container.lookup( "service:store" ).peekAll( "twitchStream" ).get( "firstObject" );
stream.set( "channel.status", "\"foo\"" );
container.lookup( "service:livestreamer" ).startStream( stream ); This should work when using |
I was using the stable release but I just tried the latest git from master and everything works fine. I even used brackets like |
I found out that VODs show the original title so I decided to try it out and I figured out the issue: one single quote within a pair of double quotes. E.g. According to the traceback, there's no closing quotation, so adding another single quote actually works: I'm not quite following how the quote substitution works or if I'm even looking at the right thing but I hope that this is enough info. |
Thanks! 👍 This seems to be related to a python dependency of Livestreamer on Windows. Clearly a bug in the parameter parser there. You can try this from the CLI: (don't be confused about the extra layer of I will see how I can fix this tomorrow. |
Don't the stream URL and quality have to be passed as the first two args? It doesn't work for me otherwise, but when I try |
Doesn't matter. But usually parameters come first. In addition to my post above:
If I can't find a working solution for this tomorrow, I will open a bug report at the livestreamer repo... |
Strange bug but I guess this really is an upstream issue. In that case, I'm not sure if there's anything you could really do other than eating the offending character(s) altogether when the platform is Windows. |
This seems to be fixed by Streamlink... |
Description
A stream with quotation marks in the title won't launch so long as the stream title is passed to Livestreamer to then be passed to the video player.
Expected / Actual behavior
Stream title gets passed to player (mpv) without issues.
Reproduction steps
{status}
parameter in your video player settings.Environment details (operating system, etc.)
Windows 8.1 x64
mpv
Comments, logs, screenshots, etc.
Offending part of title:
I'm not sure if the brackets have anything to do with it but I didn't test a stream without brackets and quotes only.
The text was updated successfully, but these errors were encountered: