write to the m3u file in binary mode in importfeeds

This commit is contained in:
Johnny Robeson 2016-06-12 20:27:01 -04:00
parent 92950ec532
commit 4dd43f1081

View file

@ -61,7 +61,7 @@ def _write_m3u(m3u_path, items_paths):
"""Append relative paths to items into m3u file.
"""
mkdirall(m3u_path)
with open(syspath(m3u_path), 'a') as f:
with open(syspath(m3u_path), 'ab') as f:
for path in items_paths:
f.write(path + b'\n')