#How to remove Overlays after 'x' amount of days?

1 messages · Page 1 of 1 (latest)

wind lake
#

I have overlays that are for TV Shows and movies that have won the latest OScar/Emmy. I want the overlays to be removed after a specific amount of days of showing. Is this possible? Here is a screenshot of the overlay when applied

half pollenBOT
#

Welcome @wind lake!

It looks like you have not yet completed the id:customize section of our Discord server, this will allow us to help you quicker.

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.

silver reef
#

The only way I can think of offhand is to have a collection that applies a label on a schedule, then conditionalize your overlay on that label being present.

Then however many days later, the label isn't there and your overlay gets removed.

wind lake
silver reef
#

There's no way to schedule "show this for some arbitrary 60 day period".

What you'd need to do is schedule the label for a fixed period that includes the award date and then 60 days after it.

silver reef
#
collections:
  Label current Oscar Winners:
    build_collection: false
    schedule: range(02/15-04/15)
    imdb_award: 
      event_id: ev0000003
      event_year: current
      winning: true
    item_label: current_oscar

Then make having that label a condition on your overlay.

You'll probably need to adjust the dates each year.

half pollenBOT
#

✅ YAML validation passed!! That is valid YAML, but may not meet Kometa's requirements

grizzled sluice
#

@wind lake can this be closed?

wind lake
#

Yes, sorry for lack of response. Been busy. Should work how I want thanks