The marking update! And a fair few long overdue things I had to do ⌚
New stuff:
- Added support for Music Video file types and collections thanks to @Maxr1998! (#12)
- Added support for marking items played or unplayed. The syntax is as follows:
"m" ("p"|"u") Selector
Where the Selector may target any mix of folders and individual items.
p
andu
map respectively to Played and Unplayed, of course. Whitespace between the three tokens is required. - Added loading of a custom mpv profile if specified by the
mpv_profile
settings entry.
This entry is optional and no profile will be loaded if it is left unspecified.
This means you have to write it in the settings file by hand, e.g. by adding a line like so
mpv_profile=jftui
at which point you are required to have a corresponding[jftui]
profile specified in yourmpv.conf
file or jftui will FATAL.
Improvements and bugfixes:
- Fixed a nasty bug which could cause a buffer overrun when a JSON entry we cared about (like a
Name
) spanned three or more chunks of data served to the parser (unlikely but possible, especially due to a connected off-by-one mismatch between the parser buffer size and libcurl's chunk size). - The
--runtime-dir
command line argument has been removed and is no longer required to allow concurrent instances of jftui to run.
The program now looks at the$TMPDIR
environment variable at runtime, or theP_tmpdir
symbol at compile time, or falls back to/tmp
to figure out a directory to use for its runtime files, which include a PID and random string discriminator in their name.
Please note the files are unlinked right after creation, so they won't appear in the filesystem at all. Track them via/proc/PID/fd
. - The
script-message jftui-playlist-print
mpv command now causes the playlist to be printed to the OSD too.
You may want to tweak theosd-duration
mpv property.