mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
rewrite populate.get_image() to extract a
track thumbnail from the first track in an album that has one. + rewrite Populate.remove_modified with sets + clean the SqliteManager utility class + Rewrite ProcessTrackThumbnails to use a process pool instead of a thread pool + rewrite track store's remove_tracks_by_filepaths to utilize sets
This commit is contained in:
@@ -245,21 +245,3 @@ def clean_title(title: str) -> str:
|
||||
#
|
||||
# if "-" in title:
|
||||
# return remove_hyphen_remasters(title)
|
||||
|
||||
|
||||
# Traceback (most recent call last):
|
||||
# File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
|
||||
# self.run()
|
||||
# File "/usr/lib/python3.10/threading.py", line 953, in run
|
||||
# self._target(*self._args, **self._kwargs)
|
||||
# File "/home/cwilvx/code/swingmusic/app/periodic_scan.py", line 29, in run_periodic_scans
|
||||
# Populate(key=get_random_str())
|
||||
# File "/home/cwilvx/code/swingmusic/app/lib/populate.py", line 74, in __init__
|
||||
# self.tag_untagged(untagged, key)
|
||||
# File "/home/cwilvx/code/swingmusic/app/lib/populate.py", line 123, in tag_untagged
|
||||
# insert_many_tracks(tagged_tracks)
|
||||
# File "/home/cwilvx/code/swingmusic/app/db/sqlite/tracks.py", line 54, in insert_many_tracks
|
||||
# cls.insert_one_track(track, cur)
|
||||
# File "/home/cwilvx/code/swingmusic/app/db/sqlite/tracks.py", line 45, in insert_one_track
|
||||
# cur.execute(sql, track)
|
||||
# sqlite3.IntegrityError: UNIQUE constraint failed: tracks.filepath
|
||||
|
||||
Reference in New Issue
Block a user