mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
check todo at api/folder.py line:60
~ everything seems to work fine in Windows too + move ProcessArtistColors to Populate
This commit is contained in:
+3
-1
@@ -6,7 +6,7 @@ from app.db.sqlite.tracks import SQLiteTrackMethods
|
||||
from app.db.sqlite.settings import SettingsSQLMethods as sdb
|
||||
from app.db.sqlite.favorite import SQLiteFavoriteMethods as favdb
|
||||
from app.db.store import Store
|
||||
from app.lib.colorlib import ProcessAlbumColors
|
||||
from app.lib.colorlib import ProcessAlbumColors, ProcessArtistColors
|
||||
|
||||
from app.lib.taglib import extract_thumb, get_tags
|
||||
from app.logger import log
|
||||
@@ -70,6 +70,8 @@ class Populate:
|
||||
|
||||
ProcessTrackThumbnails()
|
||||
ProcessAlbumColors()
|
||||
ProcessArtistColors()
|
||||
|
||||
|
||||
@staticmethod
|
||||
def filter_untagged(tracks: list[Track], files: list[str]):
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@ def get_tags(filepath: str):
|
||||
else:
|
||||
setattr(tags, tag, "Unknown")
|
||||
|
||||
# TODO: Move parsing title, album and artist to startup.
|
||||
# TODO: Move parsing title, album and artist to startup. (Maybe!)
|
||||
|
||||
to_check = ["album", "year", "albumartist"]
|
||||
for prop in to_check:
|
||||
|
||||
@@ -280,5 +280,5 @@ class Handler(PatternMatchingEventHandler):
|
||||
add_track(path)
|
||||
self.files_to_process_windows.remove(event.src_path)
|
||||
except OSError:
|
||||
print("File is locked, skipping")
|
||||
# File is locked, skipping
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user