Esempio n. 1
0
 def load_nat(self, id, node=None):
     self.create_nats()
     nat = self.get_nat_by_id(id)
     if nat:
         return nat
     nat = NonAlbumTrack(id)
     self.nats.tracks.append(nat)
     self.nats.update(True)
     if node:
         nat._parse_recording(node)
     else:
         nat.load()
     return nat
Esempio n. 2
0
 def load_nat(self, id, node=None):
     self.create_nats()
     nat = self.get_nat_by_id(id)
     if nat:
         return nat
     nat = NonAlbumTrack(id)
     self.nats.tracks.append(nat)
     self.nats.update(True)
     if node:
         nat._parse_recording(node)
     else:
         nat.load()
     return nat
Esempio n. 3
0
 def load_nat(self, nat_id, node=None):
     self.create_nats()
     nat = self.get_nat_by_id(nat_id)
     if nat:
         log.debug("NAT %s already loaded.", nat_id)
         return nat
     nat = NonAlbumTrack(nat_id)
     self.nats.tracks.append(nat)
     self.nats.update(True)
     if node:
         nat._parse_recording(node)
     else:
         nat.load()
     return nat
Esempio n. 4
0
File: tagger.py Progetto: phw/picard
 def load_nat(self, nat_id, node=None):
     self.create_nats()
     nat = self.get_nat_by_id(nat_id)
     if nat:
         log.debug("NAT %s already loaded.", nat_id)
         return nat
     nat = NonAlbumTrack(nat_id)
     self.nats.tracks.append(nat)
     self.nats.update(True)
     if node:
         nat._parse_recording(node)
     else:
         nat.load()
     return nat