rewrite split_artists parser to remove regex

+ write placehold functions to manage custom separators
This commit is contained in:
mungai-njoroge
2023-06-26 14:21:11 +03:00
parent 1cf5d38a96
commit 4a9d6bc3e6
4 changed files with 54 additions and 16 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ CREATE TABLE IF NOT EXISTS favorites (
CREATE TABLE IF NOT EXISTS settings (
id integer PRIMARY KEY,
root_dirs text NOT NULL,
exclude_dirs text
exclude_dirs text,
artist_separators text
)
"""
+24
View File
@@ -88,3 +88,27 @@ class SettingsSQLMethods:
cur.execute(sql)
dirs = cur.fetchall()
return [_dir[0] for _dir in dirs]
@staticmethod
def add_artist_separators(seps: set[str]):
"""
Adds a set of artist separators to the userdata table.
"""
# TODO: Implement
pass
@staticmethod
def get_artist_separators() -> set[str]:
"""
Gets a set of artist separators from the userdata table.
"""
# TODO: Implement
pass
@staticmethod
def remove_artist_separators(seps: set[str]):
"""
Removes a set of artist separators from the userdata table.
"""
# TODO: Implement
pass