mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 01:31:15 +00:00
update supported audio files in settings.py
+ add win_replace_slash function to format win path strings + misc
This commit is contained in:
1 parent
93a04ba041
commit
7e15680f26
15 files changed
+268
-96
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import json
|
||||
from app.db.sqlite.utils import SQLiteManager
|
||||
from app.utils import win_replace_slash
|
||||
|
||||
|
||||
class SettingsSQLMethods:
|
||||
@@ -19,7 +19,8 @@ class SettingsSQLMethods:
|
||||
cur.execute(sql)
|
||||
dirs = cur.fetchall()
|
||||
|
||||
return [dir[0] for dir in dirs]
|
||||
dirs = [dir[0] for dir in dirs]
|
||||
return [win_replace_slash(d) for d in dirs]
|
||||
|
||||
@staticmethod
|
||||
def add_root_dirs(dirs: list[str]):
|
||||
|
||||
Reference in new issue
Block a user