mopidy / mopidy-local-sqlite

DEPRECATED (Mopidy SQLite local library extension)
https://mopidy.com
Apache License 2.0
30 stars 10 forks source link

Using Filename as Track Name Misses Encoding #19

Closed tkem closed 10 years ago

tkem commented 10 years ago

Python 2.7 urllib.unquote() always returns byte strings, so if gstreamer does not report an appropriate title tag, a byte string representation of the file name will be inserted into track.name.

tkem commented 10 years ago

Since file URIs use the encoding of the underlying file system, which may vary, the encoding should be made configurable.

tkem commented 10 years ago

We may even specify multiple encodings to be used as fallbacks, e.g.

encodings = utf-8, iso-8859-1

or

encodings = utf-8, windows-1252