From 2a63113c140f7b0d41c5980fab90af8510129d34 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 2 Jan 2011 23:55:18 +1100 Subject: [PATCH] Fixed playlist --- libsyncitunes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsyncitunes.py b/libsyncitunes.py index c25ef26..80f6a0d 100644 --- a/libsyncitunes.py +++ b/libsyncitunes.py @@ -156,6 +156,8 @@ def mkdirhier(path): def export_m3u(dry_run, dest, path_prefix, playlist_name, files): if dry_run: return + if not path_prefix: + path_prefix = "../" playlist_file = os.path.join(dest, "-Playlists-", playlist_name) + ".m3u" mkdirhier(os.path.dirname(playlist_file)) logging.info("Writing: " + playlist_file) -- 2.39.2