mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 02:52:33 +01:00
use as_string to get mediafile properties as str
This commit is contained in:
parent
d3928008e1
commit
2836877c35
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ import traceback
|
|||
import enum
|
||||
|
||||
from beets import logging
|
||||
from beets.util import displayable_path, syspath
|
||||
from beets.util import displayable_path, syspath, as_string
|
||||
|
||||
|
||||
__all__ = ['UnreadableFileError', 'FileTypeError', 'MediaFile']
|
||||
|
|
@ -1470,7 +1470,7 @@ class MediaFile(object):
|
|||
"""
|
||||
for property, descriptor in cls.__dict__.items():
|
||||
if isinstance(descriptor, MediaField):
|
||||
yield property.decode('utf8')
|
||||
yield as_string(property)
|
||||
|
||||
@classmethod
|
||||
def _field_sort_name(cls, name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue