X-Git-Url: https://code.delx.au/notipod/blobdiff_plain/7d3f0713c45c6d6e933269fc3e24a446a0df7baf..2a63113c140f7b0d41c5980fab90af8510129d34:/libsyncitunes.py 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)