YouTube helper script for mpv & yt-dlp
Go to file
Emma Tebibyte f67691e8d7
fixed duplicates showing up in pick
2023-11-24 19:51:18 -07:00
COPYING initial commit 2023-11-02 22:09:01 -06:00
README update README 2023-11-19 15:14:09 -07:00
yt fixed duplicates showing up in pick 2023-11-24 19:51:18 -07:00
yt.1 initial commit 2023-11-02 22:09:01 -06:00


This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

yt(1) is a helper script providing functions for use with mpv and yt-dlp for
viewing and interacting with YouTube videos.

- curl(1)
- jq(1)
- mpv(1)
- yt-dlp(1)

- Set this variable to a dmenu-compatible picker for use with the pick

yt add | archive | cache | clone | music | pick | play | queue | verify

add uri file
- Adds a video by URI to a playlist

archive uri...
- Archives a video on the Wayback Machine

cache uri...
- Caches a video title

clone uri file
- Clones a YouTube playlist to a file

music uri...
- Downloads a video as audio, splitting it by chapter

pick file...
- Opens $PICKER to a list of videos in a file

play uri...
- Plays a video, caching its title first

queue file...
- Queues a playlist

verify file...
- Verifies that all the videos in a playlist are existent on YouTube, and if
they arent, attempts to replace the URI with one from the Wayback Machine. If
the video isnt available on the Wayback Machine, it comments the video link. It
then caches the title of the video.