mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-18 05:33:59 +00:00
Copy track orig_metadata after plugins have been run
This makes the behavior consistent with the album and avoids that we need to rerun the plugins on file matches.
This commit is contained in:
@@ -422,7 +422,6 @@ class Album(DataObject, Item):
|
||||
tm.copy(metadata)
|
||||
track_to_metadata(track_node, track)
|
||||
tm["~absolutetracknumber"] = absolutetracknumber
|
||||
track.orig_metadata.copy(tm)
|
||||
track._customize_metadata()
|
||||
|
||||
self._new_metadata.length += tm.length
|
||||
@@ -440,6 +439,7 @@ class Album(DataObject, Item):
|
||||
except BaseException:
|
||||
self.error_append(traceback.format_exc())
|
||||
|
||||
track.orig_metadata.copy(tm)
|
||||
return track
|
||||
|
||||
def load(self, priority=False, refresh=False):
|
||||
|
||||
@@ -415,9 +415,9 @@ class NonAlbumTrack(Track):
|
||||
def _parse_recording(self, recording):
|
||||
m = self.metadata
|
||||
recording_to_metadata(recording, m, self)
|
||||
self.orig_metadata.copy(m)
|
||||
self._customize_metadata()
|
||||
run_track_metadata_processors(self.album, m, recording)
|
||||
self.orig_metadata.copy(m)
|
||||
self.run_scripts(m)
|
||||
self.loaded = True
|
||||
self.status = None
|
||||
|
||||
Reference in New Issue
Block a user