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:
Philipp Wolfer
2020-09-21 21:22:34 +02:00
parent 09c382f946
commit a662a67334
2 changed files with 2 additions and 2 deletions

View File

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

View File

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