Refactor script.py to avoid code duplication

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: Normal
    • 2.1
    • Affects Version/s: 2.0.4
    • Component/s: Scripting
    • None

      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

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

              Created:
              Updated:
              Resolved:

                Version Package
                2.1