feat: added base functionality of artwork class
This commit is contained in:
@@ -27,6 +27,10 @@ The further you choose to be able to go back, the higher the memory usage.
|
||||
|
||||
EmptyLine(),
|
||||
|
||||
Attribute(name="preferred_artwork_resolution", default_value=100),
|
||||
|
||||
EmptyLine(),
|
||||
|
||||
Attribute(name="sort_by_date", default_value=True, description="If this is set to true, it will set the albumsort attribute such that,\nthe albums are sorted by date"),
|
||||
Attribute(name="sort_album_by_type", default_value=True, description="""If this is set to true, it will set the albumsort attribute such that,
|
||||
the albums are put into categories before being sorted.
|
||||
@@ -146,6 +150,9 @@ class SettingsStructure(TypedDict):
|
||||
language: str
|
||||
user_agent: str
|
||||
|
||||
# artwork
|
||||
preferred_artwork_resolution: int
|
||||
|
||||
# paths
|
||||
music_directory: Path
|
||||
temp_directory: Path
|
||||
|
@@ -96,6 +96,9 @@ def unify_punctuation(to_unify: str) -> str:
|
||||
to_unify = to_unify.replace(char, UNIFY_TO)
|
||||
return to_unify
|
||||
|
||||
def hash_url(url: str) -> int:
|
||||
return url.strip().lower().lstrip("https://").lstrip("http://")
|
||||
|
||||
|
||||
def remove_feature_part_from_track(title: str) -> str:
|
||||
if ")" != title[-1]:
|
||||
|
Reference in New Issue
Block a user