mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-02 03:23:59 +00:00
Remove album on certain condition
Remove album from picard if the track for which more results lookup was performed, was the only track in it. Otherwise load the new album without removing existing one.
This commit is contained in:
@@ -82,7 +82,11 @@ class SearchDialog(PicardDialog):
|
||||
self.tagger.get_release_group_by_id(rg_id).loaded_albums.add(
|
||||
release_id)
|
||||
self.tagger.move_file_to_track(self.obj, release_id, track_id)
|
||||
self.tagger.remove_album(album)
|
||||
if album._files == 0:
|
||||
# Remove album if the selected file was the only one in album
|
||||
# Compared to 0 because file has already moved to another album
|
||||
# by move_file_to_track
|
||||
self.tagger.remove_album(album)
|
||||
self.accept()
|
||||
|
||||
def parse_match(self, match):
|
||||
|
||||
Reference in New Issue
Block a user