diff options
author | Juhani Krekelä | 2024-09-12 22:53:49 +0300 |
---|---|---|
committer | Wolfgang Müller | 2024-09-12 22:55:36 +0200 |
commit | c2c30adb28c5f7a41c476261a7519b37ca952ffe (patch) | |
tree | 411e3c64be735c551806d34cdea8496778a36367 /later.1 | |
parent | 332102b598f35392f6e3cdd7d368824ec01dad74 (diff) | |
download | later-c2c30adb28c5f7a41c476261a7519b37ca952ffe.tar.gz |
Show video titles using yt-dlp
Different video URLs can be easy to confuse in the output of later(1).
Look up titles for them in $XDG_CACHE_HOME/later/title.json and add an
option, --update-titles, to populate the file automatically using yt-dlp.
The title is prefixed with a hash sign (#) in order to better separate
it visually from the URLs, as well as to allow easier copypasting of
output onto an mpv command line.
Diffstat (limited to '')
-rw-r--r-- | later.1 | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -1,4 +1,4 @@ -.Dd September 10, 2024 +.Dd September 12, 2024 .Dt LATER 1 .Os .Sh NAME @@ -6,12 +6,31 @@ .Nd list mpv's watch_later entries .Sh SYNOPSIS .Nm -.Op Fl h -.Op Fl \-help +.Op Fl u | \-update-titles +.Nm +.Fl h | \-help .Sh DESCRIPTION .Nm lists all watch_later entries as saved by .Xr mpv 1 . +.Pp +The options are as follows: +.Bl -tag -width "-h, --update-titles" +.It Fl u , Fl \-update-titles +update titles of videos using yt-dlp +.It Fl h , Fl \-help +show a conscise help message +.El +.Sh FILES +.Bl -tag -width "1" +.It Pa $XDG_CACHE_HOME/later/titles.json +JSON-encoded mapping of URLs to video titles. +Populated by running +.Nm +with the +.Fl \-update-titles +option. +.El .Sh SEE ALSO .Xr mpv 1 .Sh AUTHORS @@ -19,3 +38,5 @@ lists all watch_later entries as saved by .Nm was written by .An Wolfgang Müller Aq Mt wolf@oriole.systems +with yt-dlp integration by +.An Juhani Krekelä Aq Mt juhani@krekelä.fi |