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

Refactor script.py to avoid code duplication

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.1.0dev2
    • Component/s: Scripting
    • Labels:
      None

      Description

      script.py currently contains code like

      if name.startswith("_"):
      name = "~" + name[1:]

      everywhere variables are used to access metadata. Maybe we can refactor this to have the name conversion happen at a more central place.

      See discussion at https://github.com/metabrainz/picard/pull/970

        Attachments

          Activity

            People

            • Assignee:
              zas Zas
              Reporter:
              outsidecontext Philipp Wolfer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: