]> code.delx.au - notipod/blobdiff - libsyncitunes.py
Fixed playlist
[notipod] / libsyncitunes.py
index c25ef26560921aa5d58c03c3ff3f7f26b2a42b15..80f6a0d02ab65695b2410af833b9a24293313c57 100644 (file)
@@ -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)