From f92d5d5e297fd39615427109a1b533c91835f9cc Mon Sep 17 00:00:00 2001 From: kraymer Date: Wed, 2 May 2012 21:51:37 +0200 Subject: [PATCH] change m3u open mode to 'a' so file content is not reseted at each import when in 'm3u' mode --- beetsplug/importfeeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/importfeeds.py b/beetsplug/importfeeds.py index 5983a1b70..449cd9ad7 100644 --- a/beetsplug/importfeeds.py +++ b/beetsplug/importfeeds.py @@ -69,7 +69,7 @@ def _build_m3u_filename(basename): def _write_m3u(m3u_path, items_paths): """Append relative paths to items into m3u file. """ - with open(m3u_path, 'w+') as f: + with open(m3u_path, 'a') as f: for path in items_paths: f.write(path + '\n')