File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ init -1 python in songs:
219
219
title text.
220
220
221
221
NOTE: Does not perform loop/metadata prefix scan. Path will be added as-is.
222
+ NOTE: Checks if the path exists (loop prefix is ignored for this check.)
222
223
223
224
IN:
224
225
path - path to the music file
@@ -227,9 +228,16 @@ init -1 python in songs:
227
228
(sets the corresponding PM variable)
228
229
"""
229
230
231
+ filepath = path.split(" >" )[:- 1 ]
232
+ if not os.path.exists(filepath):
233
+ raise ValueError (" {0} does not exist." .format(filepath))
234
+
230
235
music_choices.append((cleanGUIText(display_name), path))
231
236
music_pages = __paginate(music_choices)
232
237
238
+ if by_user:
239
+ store.persistent._mas_pm_added_custom_bgm = True
240
+
233
241
234
242
def _sanitizeVolume (value ):
235
243
"""
You can’t perform that action at this time.
0 commit comments