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

Add Cluster As Release: Extract date and language from metadata

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Plugins
    • None

      For the plugin Add Cluster As Release I also want to extract the date and language from the metadata.

       

      For AddFileAsRelease;

              date = track.metadata["date"].split("-");
              nv("events.0.date.year", date[0])
              nv("events.0.date.month", date[1])
              nv("events.0.date.day", date[2])
              nv("language", track.metadata['language'])
      

      For AddClusterAsRelease:

              date = file.metadata["date"].split("-");
              nv("events.0.date.year", date[0])
              nv("events.0.date.month", date[1])
              nv("events.0.date.day", date[2])
              nv("language", file.metadata['language'])
      

      That's how I got if fixed on my computer, but I'm no Python expert and no Picard Plugin Developer.

            Unassigned Unassigned
            mbch331 Remko de Keijzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package