tarkah / lazystream

Easily get LazyMan stream links, output directly or to m3u / xmltv formats. Streams can also be recorded or casted.
106 stars 16 forks source link

WSL - Command Line Argument (Title) Sent With No Quotes #22

Closed nellafair closed 4 years ago

nellafair commented 4 years ago

Test Environment: WSL v2 - Ubuntu 18.04 | Host: W10 Pro Asset Installed: v1.9.2 Command: ./lazystream play select Error: Appears that the title command line parameter is being passed without quotes and is causing Streamlink to report invalid input parameters. Console Output:

Passing game to VLC...

============================

usage: streamlink [OPTIONS] [STREAM] streamlink: error: unrecognized arguments: --title Winnipeg Jets @ Washington Capitals - HOME - 2020-02-25 5:00 PM

ERROR: StreamLink failed

tarkah commented 4 years ago

Thanks for the bug report! What version of streamlink are you using?

nellafair commented 4 years ago

Looks like 0.10.0, which is a fairly old build. I'll work on getting that updated to a newer version.

tarkah commented 4 years ago

Cool, I'd imagine the newest version should fix this. Let me know!

nellafair commented 4 years ago

Yup, looks like that's the case. Now on 1.3.1 and it's passing parameters cleanly. Streams are now found, but unable to open. Not sure if WSL will work...

tarkah commented 4 years ago

Great! My next question was how were you using VLC inside WSL :P unless you have X11 server setup in windows and forwarding?

nellafair commented 4 years ago

It started as more of a proof of concept than anything, because I was having issues with Streamlink being found on Windows proper (in a Hyper-V instance mind you). Instead of digging further into it, I just quickly installed on WSL to ensure things could "run" that way.

Didn't know how WSL would handle it; now we know! I'll pass it to a proper Ubuntu VM for actual use now that I got it figured out.

I surely appreciate the help!

E: Now that I think of it, I do have xfce/xrdp setup on there.... Maybe I can run it organically... hmmm

tarkah commented 4 years ago

Honestly, if you're just trying to playback the streams, a very easy way would be to use the program in WSL to get the resolved stream link lazystream select --resolve and then paste it into Firefox using the hls.js plugin. This works for me when I'm watching on my computer. Just make your hosts file edits and you're good to go.

tarkah commented 4 years ago

And no problem! I'm going to close this issue, but feel free to keep commenting if you want to discuss.

nellafair commented 4 years ago

Good to know! I used the 'play' command simply to see the execution of the command through and to learn your command line arguments -- tis when I stumbled upon this "issue." Will eventually utilize it to query on a schedule to record streams automagically between NHL and MLB. Having to be at the helm with Lazyman proper was surely a bit tedious - had to remember to queue the stream, record, etc. This tool will help greatly with that process.

Concur on the close. Operator error 😋

tarkah commented 4 years ago

Awesome! For recording, it's super easy to automate. The record team subcommand allows you to specify what team and it'll check if there's a game that day / sleep until game starts then pass it to streamlink to record. So you can easily setup a Cron job per team you want to download and have it automatically run each day. Hope that helps!