mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add thumbnails lg path to be removed in migration
This commit is contained in:
@@ -34,12 +34,15 @@ class RemoveSmallThumbnailFolder(Migration):
|
||||
|
||||
@staticmethod
|
||||
def migrate():
|
||||
path = Paths.get_sm_thumb_path()
|
||||
thumbs_sm_path = Paths.get_sm_thumb_path()
|
||||
thumbs_lg_path = Paths.get_lg_thumb_path()
|
||||
|
||||
if os.path.exists(path):
|
||||
shutil.rmtree(path)
|
||||
for path in [thumbs_sm_path, thumbs_lg_path]:
|
||||
if os.path.exists(path):
|
||||
shutil.rmtree(path)
|
||||
|
||||
os.mkdir(path)
|
||||
for path in [thumbs_sm_path, thumbs_lg_path]:
|
||||
os.makedirs(path, exist_ok=True)
|
||||
|
||||
|
||||
class RemovePlaylistArtistHashes(Migration):
|
||||
@@ -299,4 +302,4 @@ class UpdateAppSettingsTable(Migration):
|
||||
|
||||
with SQLiteManager(userdata_db=True) as cur:
|
||||
cur.execute(drop_table_sql)
|
||||
cur.execute(create_table_sql)
|
||||
cur.execute(create_table_sql)
|
||||
|
||||
Reference in New Issue
Block a user