sane-tag-music: fix path-based tag derivation when path contains "." or ".."
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user