Skip to content
Browse files

Update the timestamp on the mp3 if tags are unchanged.

This ensures that we don't try to process the same mp3 file again and again,
futilely.
  • Loading branch information...
1 parent 09ac551 commit 7a73d33ae5b30be35fddf3d299a8e0c1a2c14aaf @antifuchs committed Mar 10, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 flac2mp3.py
View
2 flac2mp3.py
@@ -168,5 +168,7 @@ def tag_sync(flac_name, mp3_name):
if len(tag_differences.keys()) > 0:
mp3.save(mp3_name, v1=1)
+ else:
+ os.utime(mp3_name, None)
maybe_encode_file(sys.argv[1], sys.argv[2])

0 comments on commit 7a73d33

Please sign in to comment.
Something went wrong with that request. Please try again.