Follow

Put on some / / files via because that's the only that seems to support this audio format, plugged some headphones in, and getting ready to do a bit of related on my . :)

Okay, instead of on , I ended up doing some more by creating 2 fairly simple scripts to help me track and re-open the media I've launched from the command-line: github.com/FiXato/cli_player_q

basically wraps around , 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 ...)

Show thread

CLI Player Queue progress 

Okay, can now:

  • ― retrieve 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 library
  • ― can retrieve the most recent public videos of a 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 .

I want to do a bit more cleanup before committing the changes, but my brain's too fried atm to do more .

Show thread

re: CLI Player Queue progress 

f it, pushed it to a remote WIP branch so it's at least safe in case the hardware deity wants fry more than my mind. ;)

Show thread

re: CLI Player Queue progress 

Did some more hacking on , 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:
asciinema.org/a/5JW2ctXcoTaDyt

Show thread

re: CLI Player Queue progress 

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

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

Show thread

re: CLI Player Queue progress 

got some more done on , and I can now easily add channels by name and channel id either via a single command, or by hitting ctrl+n in the 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 list. :D

Show thread

re: CLI Player Queue progress 

Doesn't mean I don't still have and for 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 'er for example, or get a recent videos overview similar to 's subscription list, but then with the option to quickly exclude certain games or topics.

has a example that will probably be suitable for this.

Show thread

re: CLI Player Queue progress 

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

Show thread

re: CLI Player Queue progress 

and I quickly hacked the support in so I can now search across all my video feeds with and pass the result onto for playback :)

Show thread

re: CLI Player Queue progress 

@FiXato ooh, good job!

Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!