This commit is contained in:
mungai-njoroge
2023-08-02 14:26:19 +03:00
parent 9c9a187083
commit efb6aae927
4 changed files with 443 additions and 438 deletions
+5 -2
View File
@@ -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: