From e817b14bd73dd3f743b44e5bdf9ff5e05c23d4ee Mon Sep 17 00:00:00 2001 From: Remy Date: Tue, 2 Aug 2011 03:24:23 -0700 Subject: [PATCH] File metadata not being copied over on Windows, added tagged by comment to mp3s --- headphones/postprocessor.py | 2 +- lib/beets/autotag/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index a4651703..7b2265ed 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -293,7 +293,7 @@ def renameFiles(albumpath, downloaded_track_list, release): logger.debug('Renaming %s ---> %s' % (downloaded_track, new_file_name)) try: - shutil.move(downloaded_track, new_file) + os.rename(downloaded_track, new_file) except Exception, e: logger.error('Error renaming file: %s. Error: %s' % (downloaded_track, e)) continue diff --git a/lib/beets/autotag/__init__.py b/lib/beets/autotag/__init__.py index 4b97d1cc..fb3c6de4 100644 --- a/lib/beets/autotag/__init__.py +++ b/lib/beets/autotag/__init__.py @@ -378,6 +378,7 @@ def apply_metadata(items, info): # Compilation flag. item.comp = info['va'] + item.comments = 'tagged by headphones/beets' def match_by_id(items): """If the items are tagged with a MusicBrainz album ID, returns an