sane-tag-music: fix path-based tag derivation when path contains "." or ".."

This commit is contained in:
2024-07-23 16:46:32 +00:00
parent a103cd819f
commit 712cff2867

View File

@@ -699,6 +699,7 @@ class MediaFile:
@staticmethod
def new(f: str) -> 'MediaFile':
f = os.path.normpath(f) #< transform "./artist/album/file" -> "artist/album/file", so that path-based parsing doesn't have to care
ext = os.path.splitext(f)[1][1:].lower()
tag_field_names = TagFieldNames()
meta = None