importfeeds: Fix Unicode error when writing files.

This commit is contained in:
David Logie 2015-02-07 15:12:08 +00:00
parent 80c96d98de
commit 9b9c033df6

View file

@ -63,7 +63,7 @@ def _write_m3u(m3u_path, items_paths):
mkdirall(m3u_path)
with open(syspath(m3u_path), 'a') as f:
for path in items_paths:
f.write(path + '\n')
f.write(path + b'\n')
class ImportFeedsPlugin(BeetsPlugin):