@yarmo for a while I did something similar with my #CliPlayerQueue tool: https://toot.cat/@FiXato/105540784367770181
In the end I went back to just the browser for day to day use though.
Tonight's #coding exercise was given a #YouTube playlist id converting YouTube #API data to an #M3U playlist file.
Which might end up being pointless because the players that do already support playing YouTube videos, seem to already grab the metadata from youtube themselves and seem to ignore the metadata in the .m3u file. (Unless I've made a mistake in the format, which I guess is also likely...)
#coding #youtube #api #m3u #CliPlayerQueue
Part of me wonders why I am coding #CliPlayerQueue in plain #Bash rather than in #Python when it's quite likely I'm going to be the only one who'll actually use it. 🤔
I mean, I like #BashScripting / #ShellScripting, but I also think I would save myself a bit of time implementing and looking up of things that either come for free with Python, or in a library.
#CliPlayerQueue #bash #python #bashscripting #ShellScripting #coding
and I quickly hacked the #ripgrep support in so I can now search across all my #YouTube video feeds with #CliPlayerQueue and pass the result onto #mpv for playback :)
#ripgrep #youtube #CliPlayerQueue #mpv #coding #cli #mediaplayer
@ljwrites it's past 3 am, so I should get some sleep soon yeah. Fortunately the missus isn't scheduled to work tomorrow. :)
And yeah, I had fun working on #CliPlayerQueue :) Now it's time to actually use it for a bit to watch one or two YouTube vids to wind down.
Couldn't resist, and gave the #CliPlayerQueue interface a bit of a #Fallout #PipBoy look. ;)
#CliPlayerQueue #fallout #PipBoy #cli #tui #ui #userinterface #coding #greenPhosfor
Doesn't mean I don't still have #ideas and #plans for #CliPlayerQueue though. :)
I want to add a filter interface that scans across all the feeds, so I can quickly find videos for a specific game regardless of #LetsPlay'er for example, or get a recent videos overview similar to #YouTube's subscription list, but then with the option to quickly exclude certain games or topics.
#fzf has a #ripGrep example that will probably be suitable for this.
#ideas #plans #CliPlayerQueue #letsplay #youtube #fzf #ripgrep #todo #coding
got some more #coding done on #CliPlayerQueue, and I can now easily add channels by name and channel id either via a single #CLI command, or by hitting ctrl+n in the #fzf menu and entering the values when asked for.
Existing feeds can be updated from the menu by a single ctrl+u press.
Filtering is also slightly improved.
At this point it's one thing I can cross off the #ScratchYourOwnItches list. :D
#coding #CliPlayerQueue #cli #fzf #ScratchYourOwnItches
Did some more hacking on #CliPlayerQueue, and I can now grab the latest RSS feed of a YouTube user with it, as well as browse all the previously downloaded feeds, and launch MPV with the selected video URL.
Watch the recording of a sample session here:
https://asciinema.org/a/5JW2ctXcoTaDytQEyXtORPlg8
Okay, #CliPlayerQueue can now:
all from a #CLI.
I want to do a bit more cleanup before committing the changes, but my brain's too fried atm to do more #coding.
#CliPlayerQueue #twitch #bash #youtube #cli #coding
Okay, instead of #coding on #MSXplayRipper, I ended up doing some more #ScratchYourOwnItches by creating 2 fairly simple #Bash #CLI scripts to help me track and re-open the media I've launched from the command-line: https://github.com/FiXato/cli_player_queue
#CliPlayerQueue basically wraps around #mpv, gets the page title, tracks it in a history file, and launched mpv.
Afterwards I can browse the history file with the same command, or immediately filter it by title or URL.
The title retrieval is very simple, and basically only works for YouTube and plain HTML pages atm, but f.e. Twitch support will be added soon.
(There are probably pre-built solutions out there too, but I like #ReinventingTheWheel...)
#coding #MSXplayRipper #ScratchYourOwnItches #bash #cli #CliPlayerQueue #mpv #ReinventingTheWheel