def _remove_itunes_plist(self, container): self.log('\tLooking for iTunes files') removed_itunes_total = 0 for name in list(container.name_map.keys()): if name == 'iTunesMetadata.plist': self.log('\tFound iTunes plist file to remove') container.delete_name(name) removed_itunes_total += 1 if name == 'iTunesArtwork': self.log('\tFound iTunesArtwork file to remove') container.delete_name(name) removed_itunes_total += 1 if removed_itunes_total == 2: return True if removed_itunes_total == 1: return True return False