Пример #1
0
 def __disc_number_best_guess(release: Release) -> None:
     """if disc number is missing and there appears to only be one disc, set to """
     validated_disc_numbers = release.get_total_tracks()
     if not release.validate_total_discs() and len(
             validated_disc_numbers) == 1:
         for track in release.tracks.values():
             track.disc_number = 1
Пример #2
0
 def __fix_missing_total_tracks(release: Release) -> None:
     # fix missing total track numbers
     validated_disc_numbers = release.get_total_tracks()
     for track in release.tracks.values():
         disc_number = track.disc_number if track.disc_number else 1
         if validated_disc_numbers.get(disc_number):
             track.total_tracks = validated_disc_numbers[disc_number]