#Plex Builders - "Not A Valid Filter Attribute"

1 messages · Page 1 of 1 (latest)

rocky arch
#

I'm trying to create a Christmas collection in my Music library of albums with "Christmas" in the album title.
According to the PMM documentation (https://metamanager.wiki/en/latest/metadata/builders/plex.html#string-attributes), the proper filter attribute to use would be "album_title".
However, when I run the following:

collections:

Christmas:
name: "🎅 Christmas"
sync_mode: sync
schedule: range(12/01-12/31)
delete_not_scheduled: true
sort_title: "!000_11_Christmas"
summary: "Christmas Music"
file_poster: config/assets/Artwork/Seasons/Christmas/Poster.jpg
collection_order: alpha
minimum_items: 1
visible_home: true
visible_library: true
visible_shared: true
plex_all: true
filters:
album_title: Christmas

I get the following error message:

Validating Method: filters
Value: {'album_title': 'Christmas'}
Traceback (most recent call last):
File "//plex_meta_manager.py", line 670, in run_collection
builder = CollectionBuilder(config, metadata, mapping_name, collection_attrs, library=library, extra=output_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/modules/builder.py", line 1054, in init
self._filters(method_name, method_data)
File "/modules/builder.py", line 1852, in _filters
raise Failed(message)
modules.util.Failed: Collection Error: album_title is not a valid filter attribute

Collection Error: album_title is not a valid filter attribute

Can anyone tell me what I'm doing wrong and/or how to get around this error?

cinder currentBOT
#

Welcome @rocky arch!

It looks like you have not yet completed #938455615741775902, this will allow us to help you quicker.

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.

alpine wagon
#

Those are two different contexts, filters and plex search.

#

Filters are a different thing with a different set of available fields.

rocky arch
#

So "plex_search" and "filters" are two completely separate things, and you're saying I need to use the former for what I'm trying to do?

alpine wagon
#

Yes. The attributes discussed on the plex builder page apply to that builder only, not the filters. And vice versa.

#

So, yes, if you want to use features of the plex builder you have to use them in that context.

#

The same applies to all builders. You can't put a trakt list in a filter, for example.

rocky arch
#

Looks like that did the trick. Thank you @alpine wagon for clearing that up for me.

grizzled flame
#

I'll close this