File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
include src/aniworld/aniskip/skip.lua
2
- include src/aniworld/aniskip/autostart.lua
2
+ include src/aniworld/aniskip/autostart.lua
3
+ include src/aniworld/aniskip/autoexit.lua
Original file line number Diff line number Diff line change @@ -153,12 +153,14 @@ def clean_up_leftovers(directory: str) -> None:
153
153
154
154
def setup_aniskip () -> None :
155
155
"""
156
- Copy 'skip.lua' and 'autostart.lua' to the correct MPV scripts directory based on the OS.
156
+ Copy 'skip.lua', 'autostart.lua', and 'autoexit.lua'
157
+ to the correct MPV scripts directory based on the OS.
157
158
"""
158
159
script_directory = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
159
160
160
161
skip_source_path = os .path .join (script_directory , 'aniskip' , 'skip.lua' )
161
162
autostart_source_path = os .path .join (script_directory , 'aniskip' , 'autostart.lua' )
163
+ autoexit_source_path = os .path .join (script_directory , 'aniskip' , 'autoexit.lua' )
162
164
163
165
if os .name == 'nt' :
164
166
mpv_scripts_directory = os .path .join (
@@ -177,6 +179,10 @@ def setup_aniskip() -> None:
177
179
if not os .path .exists (autostart_destination_path ):
178
180
shutil .copy (autostart_source_path , autostart_destination_path )
179
181
182
+ autoexit_destination_path = os .path .join (mpv_scripts_directory , 'autoexit.lua' )
183
+ if not os .path .exists (autoexit_destination_path ):
184
+ shutil .copy (autoexit_source_path , autoexit_destination_path )
185
+
180
186
181
187
def execute_command (command : List [str ], only_command : bool ) -> None :
182
188
"""
You can’t perform that action at this time.
0 commit comments