Put on some #MGS / #MGSDRV / #MGSEL #chiptune files via #WinAmp because that's the only #MediaPlayer that seems to support this #MSX audio format, plugged some headphones in, and getting ready to do a bit of related #coding on my #MSXplayRipper #PetProject. :)

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...)

Show thread

CLI Player Queue progress 

Okay, #CliPlayerQueue can now:

― retrieve #Twitch stream and most recent video title
― detect if the stream is offline
― give a bit more useful error messages and error codes
― has some of its functions refactored to a #Bash library
― can retrieve the most recent public videos of a #YouTube user from their channel's RSS feed and store them in a separate history file
― list and play the videos of said file

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.

Show thread

re: CLI Player Queue progress 

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

Show thread

re: CLI Player Queue progress 

not to toot my own horn, but I'm actually quite chuffed with how this #CLI tool works already. :D

Sure, it doesn't have any thumbnails (which I guess I could hack in with something like #termimage, but I'd rather wait till my current #terminal emulator (#WindowsTerminalPreview) adds proper image support), but I already noticed I missed its quick sorting and filtering while using the #YouTube app on my phone.

#coding

Show thread

re: CLI Player Queue progress 

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

Show thread

re: CLI Player Queue progress 

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.

#ToDo #Coding

Show thread

re: CLI Player Queue progress 

Couldn't resist, and gave the #CliPlayerQueue interface a bit of a #Fallout #PipBoy look. ;)

#CLI #TUI #UI #UserInterface #coding #greenPhosfor

Show thread

re: CLI Player Queue progress 

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 :)

#coding #CLI #MediaPlayer

Show thread
Follow

re: CLI Player Queue progress 

@FiXato ooh, good job!

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Rage.love

Generalist Hometown instance with a strong focus on community standards. No TERF, no SWERF, no Nazi, no Centrist.