mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 18:13:58 +00:00
Provide debug message if already loaded
See http://forums.musicbrainz.org/viewtopic.php?id=4916 for example of need.
This commit is contained in:
@@ -394,6 +394,7 @@ class Tagger(QtGui.QApplication):
|
||||
id = self.mbid_redirects.get(id, id)
|
||||
album = self.albums.get(id)
|
||||
if album:
|
||||
log.debug("Album %s already loaded.", id)
|
||||
return album
|
||||
album = Album(id, discid=discid)
|
||||
self.albums[id] = album
|
||||
@@ -405,6 +406,7 @@ class Tagger(QtGui.QApplication):
|
||||
self.create_nats()
|
||||
nat = self.get_nat_by_id(id)
|
||||
if nat:
|
||||
log.debug("NAT %s already loaded.", id)
|
||||
return nat
|
||||
nat = NonAlbumTrack(id)
|
||||
self.nats.tracks.append(nat)
|
||||
|
||||
Reference in New Issue
Block a user