mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
Fix removal of suffixes for values that have them
This commit is contained in:
parent
3be24110d7
commit
55c68536c2
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ class MediaField(object):
|
|||
# Remove suffix.
|
||||
if style.suffix and isinstance(out, (str, unicode)):
|
||||
if out.endswith(style.suffix):
|
||||
out = out[:len(style.suffix)]
|
||||
out = out[:-len(style.suffix)]
|
||||
|
||||
# MPEG-4 freeform frames are (should be?) encoded as UTF-8.
|
||||
if obj.type == 'mp4' and style.key.startswith('----:') and \
|
||||
|
|
|
|||
Loading…
Reference in a new issue