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')