Fix comparison

This commit is contained in:
Timothy Allen 2015-06-15 08:48:49 +02:00
parent f2bd86b458
commit bc8ae15c26
1 changed files with 1 additions and 1 deletions

View File

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