Skip to content

Commit

Permalink
PICARD-2769: Show a file's original metadata in the panes for unset tags
Browse files Browse the repository at this point in the history
In case a tag has been unset and "clear existing tags" is not enabled
display a file's original value in the pane columns.
  • Loading branch information
phw committed Oct 2, 2023
1 parent 1506462 commit 5eccdad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion picard/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,10 @@ def column(self, column):
return self.base_filename
elif column == 'covercount':
return self.cover_art_description()
return m[column]
value = m[column]
if not value and not get_config().setting['clear_existing_tags']:
value = self.orig_metadata[column]
return value

def _lookup_finished(self, lookuptype, document, http, error):
self.lookup_task = None
Expand Down

0 comments on commit 5eccdad

Please sign in to comment.