mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 12:02:44 +01:00
write to the m3u file in binary mode in importfeeds
This commit is contained in:
parent
92950ec532
commit
4dd43f1081
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue