Is there a way to wait for other script to finish? #16082
-
So I have a script that will automatically switch track to the desired language, similar to po5's trackselect. That of course will trigger the Then, I have another script to cycle subtitle track, and it will get the "current" For example: I set it to
My current approach is to observe aid and sid property and it will unobserve those property when cycle function called. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No idea how to do & || ; in lua though. then just call the sleep function. Here it sleeps for 15 secs before deleting the sub (os.remove)
|
Beta Was this translation helpful? Give feedback.
-
Use https://github.com/stax76/mpv-scripts/blob/main/command_palette.lua#L127 |
Beta Was this translation helpful? Give feedback.
Use
script-message
command andmp.register_script_message
to listen.https://github.com/stax76/mpv-scripts/blob/main/command_palette.lua#L127
https://github.com/natural-harmonia-gropius/recent-menu/blob/master/recentmenu.lua#L430