TheAMM / mpv_thumbnail_script

A Lua script to show preview thumbnails in mpv's OSC seekbar, sans external dependencies
GNU General Public License v3.0
679 stars 68 forks source link

Can't regenerate thumbnails #35

Open SemperPeritus opened 5 years ago

SemperPeritus commented 5 years ago

Can't regenerate thumbnails on full file that was downloaded and opened partially. When I open a file that was downloaded partially and trying to regenerate thumbnails when it has downloaded using Shift+T it stays old (e.g. 2 thumbs of 150). Is it a way to regenerate thumbs without clearing cache and restarting player? Started thumbnails jobs appears, but nothing happens.

Hrxn commented 5 years ago

Clearing thumbnail cache just for this specific file?

SemperPeritus commented 5 years ago

I clear everything cause I don't need cache for files I already watched.

Hrxn commented 5 years ago

What is the problem then?

SemperPeritus commented 5 years ago

I can't regenerate thumbnails if I started mpv while the file is downloading. When downloading complete, I can't regenerate thumbs with just Shift+T.

Hrxn commented 5 years ago

Ah okay, I see.. Not sure, this is probably something best addressed by the script, sure. But in the meantime, maybe some workaround in input.conf would work:

shift+t run "/bin/sh" "-c" "rm -rf /your/cache/dir/${filename}"; script-binding generate-thumbnails

SemperPeritus commented 5 years ago

I already have this for Ctrl+Shift+T but without script-binding generate-thumbnails. This can solve the problem for me, but not for other users of mpv thumbnail script.