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

Split picard scripting language into a separate package

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Scripting
    • None

      Hello,

      I quite enjoy the picard scripting language and would like to use it in other music related projects.

      In this specific case, provide ampache with file renaming on upload using the same script used in MusicBrainz. To do so, it would be great if it were possible to simply do something like this

       

      # pip install picard_scripting
      
      import picard_scripting
      from .functions import FUNCTIONS
      
      picard_scripting.load_functions(FUNCTIONS)
      parser = picard_scripting.ScriptParser()
      result = parser.eval("""
      insert script here
      """, {
          "artist": "artist name",
          "album": "album name",
          #...
      })
      print(result)
      

      If there's some way I could help, I'm open to contributing code

       

            Unassigned Unassigned
            HebPlacesAGehen HebPlacesAGehen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Version Package