From bc8ae15c26ed16296fb950f938a49acb526dd4cd Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 15 Jun 2015 08:48:49 +0200 Subject: [PATCH] Fix comparison --- backup_mpd_playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_mpd_playlist.py b/backup_mpd_playlist.py index c1e6607..65307ca 100755 --- a/backup_mpd_playlist.py +++ b/backup_mpd_playlist.py @@ -129,7 +129,7 @@ else: prev = strip.sub('', backup_output) # Only copy if the current playlist has changed - if current_output != backup_output: + if curr != prev: new_backup_file = os.path.join(backup_dir, 'mpd_state' + "-" + now) # Write backup new_backup = open(new_backup_file, 'w')