Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1273

Add an option to exclude new cover art type "Raw / Unedited"

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.1
    • 1.4.2, 2.0
    • Cover Art
    • None
    • all

      https://tickets.metabrainz.org/browse/STYLE-980 has added a new cover art style "Raw / Unedited".

      Please add an option in Picard to exclude such cover art, because they are nearly useless* for a tagging software until manually edited.

       

      *  with visible color reference and other "surrounding noise".

          [PICARD-1273] Add an option to exclude new cover art type "Raw / Unedited"

          Philipp Wolfer added a comment - rdswift's pull request: https://github.com/metabrainz/picard/pull/914

          Bob Swift added a comment - - edited

          I propose a change to add an additional set of configuration settings and processing logic to identify which image types to exclude for download.

          This change adds new user settings to indicate whether selected image types should be excluded from downloads from CAA and the list of image types to be excluded, similar to the option to only include selected image types. Additional logic is applied to the list of images selected for download, and any images with a type intersecting the user's "exclusion" type list are removed from the download list.

          Generally speaking, the current logic for determining whether to download an image is (where the image is downloaded when "types" evaluates to True):

          if self.restrict_types:
              # only keep enabled caa types
              types = set(image["types"]).intersection(set(self.caa_types))
          else:
              types = True
          

          This proposed change adds a further check for exclusion, as:

          if self.restrict_types:
              # only keep enabled caa types
              types = set(image["types"]).intersection(set(self.caa_types))
          else:
              types = True
          if types and self.omit_types:
              # exclude selected caa types
              types = not set(image["types"]).intersection(set(self.caa_types_to_omit))
          

          In short, a file will be downloaded if its "type" list intersects the user-specified "download types" list unless the file's "type" list intersects with the user-specified "exclude types" list.

          Bob Swift added a comment - - edited I propose a change to add an additional set of configuration settings and processing logic to identify which image types to exclude for download. This change adds new user settings to indicate whether selected image types should be excluded from downloads from CAA and the list of image types to be excluded, similar to the option to only include selected image types. Additional logic is applied to the list of images selected for download, and any images with a type intersecting the user's "exclusion" type list are removed from the download list. Generally speaking, the current logic for determining whether to download an image is (where the image is downloaded when "types" evaluates to True): if self.restrict_types: # only keep enabled caa types types = set(image[ "types" ]).intersection(set(self.caa_types)) else : types = True This proposed change adds a further check for exclusion, as: if self.restrict_types: # only keep enabled caa types types = set(image[ "types" ]).intersection(set(self.caa_types)) else : types = True if types and self.omit_types: # exclude selected caa types types = not set(image[ "types" ]).intersection(set(self.caa_types_to_omit)) In short, a file will be downloaded if its "type" list intersects the user-specified "download types" list unless the file's "type" list intersects with the user-specified "exclude types" list.

            rdswift Bob Swift
            invisibleman78 Invisible Man
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.1