#Create collection of media not belonging to any collection

1 messages · Page 1 of 1 (latest)

rose terrace
#

Hey!

My friends are requesting movies/series by adding medias to their own Trakt list, which are monitored by radarr/sonarr. I did setup Kometa so that each of my friend trakt list results in a collection on Plex. I got it working.

The issue I'm having is that as a last step for Kometa I want it to create a collection of all medias which were not requested via a Trakt list. I will use it as a "To be deleted" collection. I managed to implement it by using a combination of plex_search and collection.not, but I'm not sure it's the proper way because Kometa throws an error if any collection doesn't exist (my friend emptied his trakt list).

I would appreciate any help.. thanks!

  CollectionA:
    trakt_list: https://trakt.tv/users/[redacted]
    sync_mode: sync
  CollectionB:
    trakt_list: https://trakt.tv/users/[redacted]
    sync_mode: sync
  CollectionC:
    trakt_list: https://trakt.tv/users/[redacted]
    sync_mode: sync
  CollectionD:
    trakt_list: 
        - https://trakt.tv/users/[redacted]
        - https://trakt.tv/users/[redacted]
    sync_mode: sync
  CollectionE:
    trakt_list: https://trakt.tv/users/[redacted]
    sync_mode: sync
  CollectionF:
    trakt_list: https://trakt.tv/users/[redacted]
    sync_mode: sync
  CollectionG:
    plex_search:
        all:
            collection.not: CollectionA, CollectionB, CollectionC, CollectionD, CollectionE, CollectionF
    item_radarr_tag.sync: orphan
    sync_mode: sync

The error will then be:

Options: ['CollectionB', 'CollectionC', 'CollectionD', 'CollectionE', 'CollectionF']
halcyon laurelBOT
#

Welcome @rose terrace!

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

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

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

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

cosmic acorn
#

so the easiest way around your error is to use validate: false

#
  CollectionG:
    validate: false      # << HERE
    plex_search:
        all:
            collection.not: CollectionA, CollectionB, CollectionC, CollectionD, CollectionE, CollectionF
    item_radarr_tag.sync: orphan
    sync_mode: sync
rose terrace
#

@cosmic acorn "validate attribute not supported"

   validate: false
   plex_search:
       all:
           collection.not: CollectionA, CollectionB, CollectionC, CollectionD, CollectionE, CollectionF
   item_radarr_tag.sync: orphan
   sync_mode: sync```
cosmic acorn
#

oh sorry I think it goes within the plex search

#

put it directly above the all

rose terrace
#

ok, I don't have the "validate attribute not supported" anymore, but I'm back to "Plex Error: collection: CollectionA not found"

#

or should I move "validate" to "CollectionA" (the one causing the issue because it doesn't exist)?

cosmic acorn
#

No

proper ferry
#

You could maybe do this as a filter rather than a search, since a filter doesn't care if the option is actually available in Plex the way that a Plex search does.

#

I can't recall if one can filter on a collection, though.

cosmic acorn
#
collections:
  Bientôt Supprimés:
    plex_all: true
    filters:
      collection.not: CollectionA, CollectionB, CollectionC, CollectionD, CollectionE, CollectionF
    item_radarr_tag.sync: orphan
    sync_mode: sync
rose terrace
#

switched to plex_all and filters as you decribed, but it results in:
Traceback issue related to the same collection not existing

rose terrace
#

I did remove the troublesome collection from the collection.not at the moment, and I will ask my friends to keep at least one movie/serie in their list until I figure that out. It shouldn't be a frequent scenario, so it gives me some time to get more familiar with Kometa and find a solution. Should I close this thread?

steep rivet
#

If you’re finished you can close with /close