#Search syntax question

1 messages · Page 1 of 1 (latest)

shell vector
#

What is the correct way to format this builder? I'm trying to add a list of specific albums to a collection.

  Vinyl Collection Test:
    builder_level: album
    template: 
      - name: sort
      - name: theme
    plex_search:
      any:
        - all: 
            artist_title: The 5th Dimension
            album_title: The Age of Aquarius
        - all: 
            artist_title: 13th Floor Elevators
            album_title: The Psychedelic Sounds of the 13th Floor Elevators
        - all:
            artist_title: Adele
            album_title: 25
        - all:
            artist_title: Air
            any: 
              album_title: 
                - Moon Safari
                - Premiers Symptômes
                - The Virgin Suicides
weak meteorBOT
#

Welcome @shell vector!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

shell vector
#

Also, if there's a better way to build a list of albums, I'm all ears! Is there an album ID I could leverage instead of names?

shell vector
#

Can anyone help with this?

hard adder
#

I personally cannot as I have limited to zero experience with music collections and Plex

tiny light
#

I'm in the same situation.

#

What happens when you try the YAML above?

shell vector
#

I get an error due to multiple "all" items in the list:

| Collection Error: any must be a dictionary: [{'all': {'artist_title': 'The 5th Dimension', 'album_title': 'The Age of Aquarius'}}, {'all': {'artist_title': '13th Floor Elevators', 'album_title': 'The Psychedelic Sounds of the 13th Floor Elevators'}}, {'all': {'artist_title': 'Adele', 'album_title': 25}}, {'all': {'artist_title': 'Air', 'any': {'album_title': ['Moon Safari', 'Premiers Symptômes', 'The Virgin Suicides']}}}] |
tiny light
#

I think maybe:

  Vinyl Collection Test:
    builder_level: album
    template: 
      - name: sort
      - name: theme
    plex_search:
      any:
        - artist_title: The 5th Dimension
          album_title: The Age of Aquarius
        - artist_title: 13th Floor Elevators
          album_title: The Psychedelic Sounds of the 13th Floor Elevators
        - artist_title: Adele
          album_title: 25
        - artist_title: Air
          any: 
            album_title: 
              - Moon Safari
              - Premiers Symptômes
              - The Virgin Suicides

I'm least certain about that last one

shell vector
#

Hmm, I'm still getting a similar error:

Collection Error: any must be a dictionary: [{'artist_title': 'The 5th Dimension', 'album_title': 'The Age of Aquarius'}, {'artist_title': '13th Floor Elevators', 'album_title': 'The Psychedelic Sounds of the 13th Floor Elevators'}, {'artist_title': 'Adele', 'album_title': 25}, {'artist_title': 'Air', 'any': {'album_title': ['Moon Safari', 'Premiers Symptômes', 'The Virgin Suicides']}}]
tiny light
#

Yeah, that was off the top of my head.

hard adder
#

Any other updates here?

shell vector
#

Still looking for a solution here as well.

hard adder
#

Ok

shell vector
#

Checking in — does anyone have info that could help me with this? I'm pretty sure it's possible and that I just have the formatting wrong...

hard adder
#

have you already sent us a trace log?

lean knollBOT
#

We require more low-level logs from your PMM run in order to be able to assist your further; we call these "trace logs" and they give us a more in-depth look at what is happening behind-the-scenes when PMM is running.

in order to get trace logs, you need to run PMM again using the --trace environment variable.

Once you have completed your run with Trace enabled, you can find your meta.log file within the logs folder of your Plex Meta Manager config folder [typically where you would find your config.yml]

Drag-and-drop your meta.log file directly into the Discord support thread. If the file is larger than 50mb, we suggest zipping it or uploading it to another file-sharing website.

Please DO NOT manually extract, copy and paste text from your log files directly into Discord as the formatting can be difficult to read and can often redact parts of the log file that are important for full context.

thick rampart
#

I did ask Sohjiro to review the initial message and he said the yaml looked OK, I'm not sure beyond that

shell vector
#

Ok, let me grab a trace for you.

shell vector
shell vector
#

Any ideas?

hard adder
#

None on my side

tiny light
#

I don't have a music library to test with.

shell vector
#

Ok, so I realize you don't have a music library. I made a very similar test collection for TV episodes, and I'm getting the same error as with the album collection. What's wrong with my YAML?

  Collection Test:
    builder_level: episode
    test: true
    label: Admin
    template: 
      - name: sort
      - name: theme
    plex_search:
      any:
        - all:
            title: South Park
            episode_title.is: Volcano
        - all:
            title: Rick and Morty
            any: 
              episode_title.is: 
                - Something Ricked This Way Comes
                - Close Rick-Counters of the Rick Kind
                - Ricksy Business
weak meteorBOT
#

📝 If you want to review this again, pterisaur:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

civic lantern
#

Do any then all and make all a list

#

With each team in the list your all groups from above

#
  Collection Test:
    builder_level: episode
    test: true
    label: Admin
    template: 
      - name: sort
      - name: theme
    plex_search:
      any:
        all:
          - title: South Park
            episode_title.is: Volcano
          - title: Rick and Morty
            any: 
              episode_title.is: 
                 - Something Ricked This Way Comes
                 - Close Rick-Counters of the Rick Kind
                 - Ricksy Business