mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
misc
This commit is contained in:
+5
-2
@@ -1,16 +1,18 @@
|
||||
import os
|
||||
from io import BytesIO
|
||||
import pendulum
|
||||
|
||||
import pendulum
|
||||
from PIL import Image, UnidentifiedImageError
|
||||
from tinytag import TinyTag
|
||||
|
||||
from app.settings import Defaults, Paths
|
||||
from app.utils.hashing import create_hash
|
||||
from app.utils.parsers import parse_title_from_filename, parse_artist_from_filename
|
||||
from app.utils.parsers import (parse_artist_from_filename,
|
||||
parse_title_from_filename)
|
||||
from app.utils.wintools import win_replace_slash
|
||||
|
||||
|
||||
|
||||
def parse_album_art(filepath: str):
|
||||
"""
|
||||
Returns the album art for a given audio file.
|
||||
@@ -179,6 +181,7 @@ def get_tags(filepath: str):
|
||||
"samplerate",
|
||||
"track_total",
|
||||
"year",
|
||||
"bitdepth",
|
||||
]
|
||||
|
||||
for tag in to_delete:
|
||||
|
||||
Reference in New Issue
Block a user