mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 10:24:42 +00:00
implement pinning playlists
+ update migrations to add pinned attr to plalist + misc
This commit is contained in:
1 parent
c3c9cb059f
commit
e3a61c109b
5 files changed
+68
-71
No files matched your search
+2
-2
@@ -40,8 +40,8 @@ def extract_thumb(filepath: str, webp_path: str, overwrite=False) -> bool:
|
||||
img.resize((tsize, tsize), Image.ANTIALIAS).save(lg_img_path, "webp")
|
||||
img.resize((sm_tsize, sm_tsize), Image.ANTIALIAS).save(sm_img_path, "webp")
|
||||
|
||||
if not overwrite and os.path.exists(lg_img_path):
|
||||
img_size = os.path.getsize(lg_img_path)
|
||||
if not overwrite and os.path.exists(sm_img_path):
|
||||
img_size = os.path.getsize(sm_img_path)
|
||||
|
||||
if img_size > 0:
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user