* use sub-end instead of sub-text. Disadvantage is that ignoring subtitles is broken right now. Advantage: image based subtitles are working.
For dvd subtitles (that's what I tested) it can happen that some subtitle lines, get 'eaten'. They don't show even though they should.
* implement sub-timeout: when subtitles are displayed without change for some time (5s) -> speedup. (Useful for autogenerated subtitles)
* improvements to skip mode:
- better behaviour if next subtitle is not in cache
- option for non-exact skips. This also implements seek-back since a skip is not guaranteed to end at the next line. It might skip over it.
* users can now supply a script configuration file (speed_transition.conf)
* remove key binding for sub visibility. Pressing v seems to handle this nicely.
* change key binding for skip mode to alt + j
* added bunch of debugging code to better debug issues
no credits needed. just wanted to make installation clear to newbies as i had lot of problem installing censor script ,according to me which is most important. thanks to zenyd
- {'provider': {'username': 'user', 'password': 'pass'}}
- Here you can pass on auth config to various providers like opensubtitles and others.
ex.
{'opensubtitles': {'username': 'user', 'password': 'pass'}}
- Multiple providers can be passed as such, each separated by a comma [.]
{'provider1': {'username': 'user', 'password': 'pass'}, 'provider2': {'username': 'user', 'password': 'pass'}, 'provider3': {'username': 'user', 'password': 'pass'}}
* key bind for list of delete marks
https://github.com/zenyd/mpv-scripts/issues/14
* make show list a toggle so we don't spam the terminal
* put showListTimer:resume() in condition
* undelete all and globalize timer
if timer is local showList() can't reference it
* add new keybinds
* add space to help wrapping
* better matching
* Document user options and add some new features
I realized I've been adding to and adjusting this script for a while now and almost lost it in a reformat. I also included some requested feature's from the issue tracker. I'll comment inline to clarify some changes.
* Update speed-transition.lua
* Update README.md
* Update speed-transition.lua
* Update speed-transition.lua
* send filename to python script instead of media-title
* status returned from subprocess can be negative even if command succeeds -> check error_string instead
subselect.py: use all the available subtitle providers for search
If avdesync > leadin then we resume too late after the subtitle should have been shown. When mpv plays with no audio, subtitles are timed to video instead of audio. This change removes audio in this case to ensure we resume on time.
Currently, the selected files are deleted only when mpv is
exited via the quit command. If, however, the quit reason is
eof of the last file in the playlist, delete_file would not
delete any files.
To fix this use the correct event, i.e. shutdown, instead of
end-file.
See:
https://github.com/mpv-player/mpv/blob/master/DOCS/man/lua.rst#list-of-events
When seeking in a speedup zone the code would transition from state
1 to 0 and again to 1 restoring normal speed and speeding up again. This is not really visible but it introduced a slight delay when seeking.
This change prevents the speed transition when seeking within the same
zone and when seeking to different zones by storing the begin and end of
such a zone.
Fixes commits d8738984 and 759bd191, which were reverted.
When seeking from one speedup zone to a different speedup zone, which
lies in the past, the code would not reset early. So check for this case
and update the corresponding variables.
non ascii characters seem to conflict with lua/mpv when writing the
filename to stdout, which leads to failure in loading the subtitle. This
fixes that.
* attempts to add my optional leadin
speed will return to normal an optional number of seconds before the subs appear. Has worked for me so far, would you mind testing?
* Update speed-transition.lua
* Update speed-transition.lua