#Advice on tweaking a smart filter collection please!

1 messages · Page 1 of 1 (latest)

unkempt adder
#

Hi guys, I've created a collection with smart filters that lists all movies with the genre 'Action' in from teh year 2024. Is there a way to amend the year part of the filter to be => 2024 instead of just 2024?
My intention is that I'll have a few collections for unwatched movies from the last year, but part way through the year I'll change it to be just 2025, but until then I want it to pick up all 2024 plus any added in 2025 - hope that makes sense! Here's what I'm using so far;

    sort_title: "!100_2024 Action Movies"
    smart_filter:
      all:
        year:
          - 2024
        genre:
          - Action
      sort_by: release.desc```
Thanks
quaint hingeBOT
#

Welcome @unkempt adder!

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.

thick tendon
#

have you tried checking the wiki? yaml 2024 Action Movies: sort_title: "!100_2024 Action Movies" smart_filter: all: year.gte: - 2024 genre: - Action sort_by: release.desc @unkempt adder

#

.. or even yaml 2024 Action Movies: sort_title: "!100_2024 Action Movies" smart_filter: all: year.gte: - current_year-1 genre: - Action sort_by: release.desc

unkempt adder
#

Hi, thanks for the reply. Yes, I did look through the wiki but couldn't get it working. I'd tried using release but couldn't get it right and hadn't found the year.gte option.

I've tried both the ones you suggested, but both come back with errors. The first one gives me "Collection Error: year.gte attribute ['current_year-1'] must be an integer 0 or greater" and the second says the error "Collection Error: year.gte attribute [2024] must be an integer 0 or greater".
Any suggestions? Thanks

quaint hingeBOT
#

📝 If you want to review this again, emanef.:
: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> 📝

#
**Rec 01** - ❌ **ANIDB AUTH ERRORS**

ANIDB AUTH ERRORS
Kometa uses AniDB settings to connect to AniDB.
This error indicates that the setting is not correctly setup in config.yml.
For more information on configuring AniDB, [https://kometa.wiki/en/latest/config/anidb]
4 line(s) with ANIDB AUTH errors. Line number(s): 1322, 1324, 14235-14236

marsh trail
#

Generally it's useful to describe things you tried and the results to avoid wasted time suggesting things you've already tried and/or to spot errors in what you've tried.

You want to extend it to be 2024 and beyond or 2024 + 2025 only or something else?

#

Assuming you want 2024 and beyond:

There's some conflicting into on this page in the wiki. Notably:

No number filter can take multiple values.

Where one of the examples shows a number filter using multiple values.

In any case most likely this will work:

  2024 Action Movies:
    sort_title: "!100_2024 Action Movies"
    smart_filter:
      all:
        year.gte: 2024
        genre:
          - Action
      sort_by: release.desc

If you want something other than "2024 and beyond" then a different approach is needed.

unkempt adder
#

I think this has worked, looked likes it's got it, will double check in the morning;

    sort_title: "!100_2024 Mystery/Thriller Movies"
    smart_filter:
      all:
        release.after: 01/01/2024
        any:
          genre:
            - Mystery
            - Thriller
      sort_by: release.desc```
Thanks
marsh trail
#

Sure, again that's going to include everything released in 2025 as the year goes on, and then 2026, etc

unkempt adder
#

Yes, that's perfect, I can just amend the date as and when I need to. Thanks for your help! 🙂

floral obsidianBOT
#

antwanchild used !aenh

@unkempt adder, anything else needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.