Commit Graph

11 Commits

Author SHA1 Message Date
Florian Bruhin f654c0fdfc cast userscript: Fix error message
Avoid SC2140 shellcheck false-positive: https://github.com/koalaman/shellcheck/issues/2479

Also remove extra quoting
2022-03-31 11:41:30 +02:00
David Vaughan 0321577cc3 Fix a couple tab lengths (cast) 2022-03-21 21:13:56 -07:00
David Vaughan 065edd67fa Change cast configuration to use an env var
Also some other small improvements / fixes.
2022-03-21 21:06:36 -07:00
David Vaughan 88aa165d48 Disable shellcheck on source line (cast) 2022-03-16 16:46:12 -07:00
David Vaughan e38b31af0b Make cast dl program configurable (default yt-dlp)
I am making the yt-dl program used in the `cast` userscript
configurable, via a pattern borrowed from some of the other
userscripts here (e.g. `password_fill` and `kodi`): we look for an
optional "cast_rc" file in the qutebrowser config directory and source
it if it exists.

(Technically this allows for overriding any variables used in `cast`,
but this is in line with how the pattern works in the other scripts
already.)

If the config file is not found, we default to yt-dlp, and if that
doesn't exist then youtube-dl. If after all this no program is
available, we emit an error message

(note, the error messaging function as currently written in the cast script
seems broken and doesn't display the full error message, but fixing this
existing bug is outside of the scope of this change. May be good for a
followup).

I recognize there's some danger of breakage for some users by switching
the default to yt-dlp, but I think it's reasonable to assume that almost
everybody who has yt-dlp installed would prefer it to be used anyway.
Those who don't will experience no difference.
2022-03-16 16:39:57 -07:00
DavidRV00 3ba49366d1
Switch `cast` userscript from youtube-dl to yt-dlp
The `cast` userscript hasn't worked for me in a while, because it attempts to launch youtube-dl which has been replaced by yt-dlp for some time. Switching this one command gets `cast` working for me.
2022-03-15 23:30:36 -07:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin a78442bb67 Rewrite file collection in misc_checks.py
Now collects all (non-ignored) files via `git ls-files` and only skips
some binary formats.

Also adds some type annotations and fixes some newly unconvered
UK-spellings.
2020-09-06 17:23:03 +02:00
François Chavant 31710b7045 Trivial fixes for shellcheck warnings 2017-12-02 19:37:20 +01:00
Simon Désaulniers 3cb06f9a81
userscripts/cast: effectively kill old proc
Custom location installed castnow can't be killed with the command
`pkill -f /usr/bin/castnow`. Now recover the path to the binary in the path for
calling and killing the program.
2017-11-05 00:19:06 -04:00
Simon Désaulniers bdab57743a add cast userscript for ChromeCast 2016-10-11 21:22:34 -04:00