3 ms·
Linux n00b over here... apologies for the silly question but I can't seem to make this work I enter spongebob-cli Then when it prompts me to enter an episode
by factorymoo 5y ago
Linux n00b over here...
apologies for the silly question but I can't seem to make this work
I enter
spongebob-cli
Then when it prompts me to enter an episode number, I can't seem to get it to play from within the terminal itself
let's say I want to play episode 1:
1 --mpv --vo=tct --quiet
Doesn't seem to work. Any help to get past this would be greatly appreciated
- ginko 5y agoDid you add them as separate strings like this? subprocess.run(["mpv", "--vo=tct", "--quiet", DirectLink]) Otherwise your terminal may be missing true-color terminal mode or the mpv in your distro doesn't have that output plugin. (You can check with "mpv --vo=help")
- kkirsche 5y agoIf, like me, you forget where to split the command and arguments, shlex.split in the standard library can split the raw string for you.
- Doxin 5y agoRule of thumb is every space, except ones you'd normally put between quotes. so e.g. foo quix-quiz "bar baz" turns into ["foo", "quix-quiz", "bar baz"] Though do note that you don't get an extra set of quotes on "bar baz" which is slightly confusing, but makes sense once you think about it a bit.
- jhugo 5y agoYou need to edit spongebob-cli to add the arguments to the code where it calls mpv. It sounds like you're just running it and providing the arguments to its prompt.