joaquintorres / autosubsync-mpv

Automatic subtitle synchronization script for mpv media player
MIT License
135 stars 13 forks source link

need to be automatic #23

Open Rkso0 opened 1 year ago

Rkso0 commented 1 year ago

Hello, I am not good with programming so I am looking to make this script fully automatic, I want it always run when starting the file without asking me if I want ffsubsync or alass '"ffsubsync always for current video'" after that, it should delete the old subtitle if this possible /:

rizzini commented 11 months ago

+1 for this feature. Along with it, It'd be cool to have a folder include and exclude list, like in here at the mpv-autosub project.

Thank you for the amazing job. The script works great.

tatsumoto-ren commented 11 months ago

This user-script doesn't need to be run when you load a subtitle file that is already timed. So I think it's better if you first check if the subtitles are correctly timed before running the script. Running it automatically every time might actually make things worse in certain situations.

However, if you want this feature to be implemented, you need to the the following:

1) add a new option to the config file 2) check if it is enabled on startup and call sync_subtitles() 3) if the file has been retimed already, do nothing.