FiXato · @FiXato
393 followers · 9412 posts · Server toot.cat

@yarmo for a while I did something similar with my tool: toot.cat/@FiXato/1055407843677

In the end I went back to just the browser for day to day use though.

#CliPlayerQueue

Last updated 3 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

Tonight's exercise was given a playlist id converting YouTube data to an 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

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

Part of me wonders why I am coding in plain rather than in when it's quite likely I'm going to be the only one who'll actually use it. 🤔

I mean, I like / , 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

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

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

#ripgrep #youtube #CliPlayerQueue #mpv #coding #cli #mediaplayer

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

@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 :) Now it's time to actually use it for a bit to watch one or two YouTube vids to wind down.

#CliPlayerQueue

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat
FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

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.

#ideas #plans #CliPlayerQueue #letsplay #youtube #fzf #ripgrep #todo #coding

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

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

#coding #CliPlayerQueue #cli #fzf #ScratchYourOwnItches

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

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

#CliPlayerQueue

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

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 .

#CliPlayerQueue #twitch #bash #youtube #cli #coding

Last updated 4 years ago

FiXato · @FiXato
393 followers · 9413 posts · Server toot.cat

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

#coding #MSXplayRipper #ScratchYourOwnItches #bash #cli #CliPlayerQueue #mpv #ReinventingTheWheel

Last updated 4 years ago