mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
add thumbnails lg path to be removed in migration
This commit is contained in:
parent
a1c2e9fb19
commit
26e36ba36f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user