- Stagger scheduling to reduce per-run load

This commit is contained in:
nwithan8 2023-12-02 13:56:18 -07:00
parent adc6a0a0d5
commit 4f4c7bf885
6 changed files with 68 additions and 44 deletions

View File

@ -18,7 +18,7 @@ templates:
sort_title: 050_Oscars_Winners_<<key>> sort_title: 050_Oscars_Winners_<<key>>
imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=oscar_winner&sort=<<imdb_sort>> imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=oscar_winner&sort=<<imdb_sort>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/oscars/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/oscars/<<key>>.jpg
schedule: monthly(04) schedule: monthly(05)
Yearly_Berlinale_Awards: Yearly_Berlinale_Awards:
default: default:
@ -29,7 +29,7 @@ templates:
sort_title: 050_Berlinale_Winners_<<key>> sort_title: 050_Berlinale_Winners_<<key>>
trakt_list: https://trakt.tv/users/<<url>> trakt_list: https://trakt.tv/users/<<url>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/berlinale/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/berlinale/<<key>>.jpg
schedule: monthly(04) schedule: monthly(06)
Yearly_Cannes_Awards: Yearly_Cannes_Awards:
default: default:
@ -40,7 +40,7 @@ templates:
sort_title: 050_Cannes_Winners_<<key>> sort_title: 050_Cannes_Winners_<<key>>
trakt_list: https://trakt.tv/users/<<url>> trakt_list: https://trakt.tv/users/<<url>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/cannes/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/cannes/<<key>>.jpg
schedule: monthly(04) schedule: monthly(07)
Yearly_Sundance_Awards: Yearly_Sundance_Awards:
default: default:
@ -51,7 +51,7 @@ templates:
sort_title: 050_Sundance_Winners_<<key>> sort_title: 050_Sundance_Winners_<<key>>
trakt_list: https://trakt.tv/users/<<url>> trakt_list: https://trakt.tv/users/<<url>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/sundance/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/sundance/<<key>>.jpg
schedule: monthly(04) schedule: monthly(08)
Yearly_Golden_Globes_Winners: Yearly_Golden_Globes_Winners:
default: default:
@ -60,7 +60,7 @@ templates:
sort_title: 050_Golden_Globes_Winners_<<key>> sort_title: 050_Golden_Globes_Winners_<<key>>
imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=golden_globe_winner&sort=<<imdb_sort>> imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=golden_globe_winner&sort=<<imdb_sort>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/golden/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/golden/<<key>>.jpg
schedule: monthly(04) schedule: monthly(09)
Yearly_Spirit_Awards: Yearly_Spirit_Awards:
default: default:
@ -71,7 +71,7 @@ templates:
sort_title: 050_Spirit_Winners_<<key>> sort_title: 050_Spirit_Winners_<<key>>
trakt_list: https://trakt.tv/users/<<url>> trakt_list: https://trakt.tv/users/<<url>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/spirit/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/spirit/<<key>>.jpg
schedule: monthly(04) schedule: monthly(10)
Yearly_Critics_Choice_Awards: Yearly_Critics_Choice_Awards:
default: default:
@ -82,7 +82,7 @@ templates:
sort_title: 050_Critics_Winners_<<key>> sort_title: 050_Critics_Winners_<<key>>
trakt_list: https://trakt.tv/users/<<url>> trakt_list: https://trakt.tv/users/<<url>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/choice/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/choice/<<key>>.jpg
schedule: monthly(04) schedule: monthly(11)
Yearly_BAFTA_Awards: Yearly_BAFTA_Awards:
default: default:
@ -93,7 +93,7 @@ templates:
sort_title: 050_BAFTA_Winners_<<key>> sort_title: 050_BAFTA_Winners_<<key>>
trakt_list: https://trakt.tv/users/<<url>> trakt_list: https://trakt.tv/users/<<url>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/bafta/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/bafta/<<key>>.jpg
schedule: monthly(04) schedule: monthly(12)
Yearly_Razzie_Winners: Yearly_Razzie_Winners:
default: default:
@ -102,7 +102,7 @@ templates:
sort_title: 051_Razzie_Winners_<<key>> sort_title: 051_Razzie_Winners_<<key>>
imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=razzie_winner&sort=<<imdb_sort>> imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=razzie_winner&sort=<<imdb_sort>>
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/razzie/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/razzie/<<key>>.jpg
schedule: monthly(04) schedule: monthly(13)
collections: collections:
### This year's Academy Awards ### This year's Academy Awards

View File

@ -11,7 +11,7 @@ collections:
summary: "RottenTomatoes' movies with a perfect score" summary: "RottenTomatoes' movies with a perfect score"
mdblist_list: https://mdblist.com/lists/hdlists/100-on-rottentomatoes-com mdblist_list: https://mdblist.com/lists/hdlists/100-on-rottentomatoes-com
collection_order: random collection_order: random
schedule: monthly(1) # default schedule
visible_library: true visible_library: true
visible_home: true visible_home: true
visible_shared: true visible_shared: true
@ -26,7 +26,7 @@ collections:
- https://trakt.tv/users/hdlists/lists/worst-movies-of-all-time - https://trakt.tv/users/hdlists/lists/worst-movies-of-all-time
- https://trakt.tv/users/nwithan8/lists/5-or-less-on-rotton-tomatoes?sort=rank,asc - https://trakt.tv/users/nwithan8/lists/5-or-less-on-rotton-tomatoes?sort=rank,asc
collection_order: random collection_order: random
schedule: monthly(1) # default schedule
visible_library: true visible_library: true
visible_home: true visible_home: true
visible_shared: true visible_shared: true
@ -39,7 +39,7 @@ collections:
trakt_list: trakt_list:
- https://trakt.tv/users/lish408/lists/how-did-this-get-made-podcast - https://trakt.tv/users/lish408/lists/how-did-this-get-made-podcast
collection_order: custom collection_order: custom
schedule: weekly(monday) # default schedule
visible_library: true visible_library: true
visible_home: true visible_home: true
visible_shared: true visible_shared: true
@ -76,7 +76,7 @@ collections:
trakt_list_details: trakt_list_details:
- https://trakt.tv/users/sp1ti/lists/1001-movies-you-must-see-before-you-die - https://trakt.tv/users/sp1ti/lists/1001-movies-you-must-see-before-you-die
collection_order: random collection_order: random
schedule: monthly(1) schedule: monthly(03)
visible_library: true visible_library: true
visible_home: true visible_home: true
visible_shared: true visible_shared: true
@ -89,7 +89,7 @@ collections:
trakt_list_details: trakt_list_details:
- https://trakt.tv/users/dildogarden/lists/100-movies-bucket-list - https://trakt.tv/users/dildogarden/lists/100-movies-bucket-list
collection_order: rank.desc collection_order: rank.desc
schedule: monthly(1) schedule: monthly(04)
visible_library: true visible_library: true
visible_home: true visible_home: true
visible_shared: true visible_shared: true
@ -102,7 +102,7 @@ collections:
trakt_list_details: trakt_list_details:
- https://trakt.tv/users/maxwelldeux/lists/the-criterion-collection - https://trakt.tv/users/maxwelldeux/lists/the-criterion-collection
collection_order: critic_rating.desc collection_order: critic_rating.desc
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: true visible_home: true
visible_shared: true visible_shared: true
@ -114,7 +114,7 @@ collections:
summary: "007 forever" summary: "007 forever"
mdblist_list: https://mdblist.com/lists/hdlists/james-bond-movies mdblist_list: https://mdblist.com/lists/hdlists/james-bond-movies
collection_order: release collection_order: release
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -127,7 +127,7 @@ collections:
trakt_list: trakt_list:
- https://trakt.tv/users/cybercelia/lists/mcu - https://trakt.tv/users/cybercelia/lists/mcu
collection_order: release collection_order: release
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -140,7 +140,7 @@ collections:
trakt_list: trakt_list:
- https://trakt.tv/users/maxrax/lists/dc-cinematics - https://trakt.tv/users/maxrax/lists/dc-cinematics
collection_order: release collection_order: release
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -153,7 +153,7 @@ collections:
imdb_list: imdb_list:
- https://www.imdb.com/list/ls093405279 - https://www.imdb.com/list/ls093405279
collection_order: release collection_order: release
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -167,7 +167,7 @@ collections:
- https://trakt.tv/users/dgw/lists/star-trek-canon - https://trakt.tv/users/dgw/lists/star-trek-canon
url_background: https://i.redd.it/vz20prnp8v551.jpg url_background: https://i.redd.it/vz20prnp8v551.jpg
collection_order: release collection_order: release
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -181,7 +181,7 @@ collections:
- https://trakt.tv/users/sonicwarrior/lists/star-wars-canon-timeline - https://trakt.tv/users/sonicwarrior/lists/star-wars-canon-timeline
url_background: https://images.unsplash.com/photo-1579566346927-c68383817a25 url_background: https://images.unsplash.com/photo-1579566346927-c68383817a25
collection_order: custom collection_order: custom
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -195,7 +195,7 @@ collections:
- https://trakt.tv/users/mraniki/lists/battlestar-galactica-universe - https://trakt.tv/users/mraniki/lists/battlestar-galactica-universe
url_background: https://wallpapercave.com/wp/vPJGO64.jpg url_background: https://wallpapercave.com/wp/vPJGO64.jpg
collection_order: custom collection_order: custom
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -209,7 +209,7 @@ collections:
- https://trakt.tv/users/michaeldibben/lists/shakespeare-plays - https://trakt.tv/users/michaeldibben/lists/shakespeare-plays
url_background: https://images.unsplash.com/photo-1598391990342-311775e3d374 url_background: https://images.unsplash.com/photo-1598391990342-311775e3d374
collection_order: random collection_order: random
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -223,7 +223,7 @@ collections:
- https://trakt.tv/users/majeed_pk/lists/the-best-edgar-allan-poe-adaptations - https://trakt.tv/users/majeed_pk/lists/the-best-edgar-allan-poe-adaptations
url_background: https://wallpapercave.com/wp/wp2328085.jpg url_background: https://wallpapercave.com/wp/wp2328085.jpg
collection_order: random collection_order: random
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false
@ -238,7 +238,7 @@ collections:
all: all:
writer: "Stephen King" writer: "Stephen King"
sort_by: release.asc sort_by: release.asc
schedule: weekly(sunday) # default schedule
visible_library: true visible_library: true
visible_home: false visible_home: false
visible_shared: false visible_shared: false

View File

@ -16,7 +16,7 @@ templates:
visible_library: true visible_library: true
visible_shared: false visible_shared: false
visible_home: false visible_home: false
schedule: monthly(1) schedule: monthly(01)
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/year/best/<<key>>.jpg url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/year/best/<<key>>.jpg
dynamic_collections: dynamic_collections:

View File

@ -65,7 +65,6 @@ templates:
sort_title: 050_+<<level>>_<<sort_title_name>> sort_title: 050_+<<level>>_<<sort_title_name>>
sync_mode: sync sync_mode: sync
schedule: schedule:
- weekly(wednesday)
- weekly(sunday) - weekly(sunday)
visible_library: false visible_library: false
url_poster: <<poster_url>> url_poster: <<poster_url>>
@ -81,7 +80,6 @@ templates:
sort_title: 052_+<<level>>_<<sort_title_name>> sort_title: 052_+<<level>>_<<sort_title_name>>
sync_mode: append sync_mode: append
schedule: schedule:
- weekly(wednesday)
- weekly(sunday) - weekly(sunday)
visible_library: false visible_library: false
@ -109,8 +107,8 @@ templates:
sort_title: 065_+<<level>>_<<sort_title_name>> sort_title: 065_+<<level>>_<<sort_title_name>>
sync_mode: sync sync_mode: sync
schedule: schedule:
- weekly(wednesday) - weekly(tuesday)
- weekly(sunday) - weekly(friday)
visible_library: true visible_library: true
url_poster: <<poster_url>> url_poster: <<poster_url>>
@ -124,7 +122,7 @@ templates:
sync_mode: sync sync_mode: sync
schedule: schedule:
- weekly(wednesday) - weekly(wednesday)
- weekly(sunday) - weekly(saturday)
visible_library: true visible_library: true
url_poster: <<poster_url>> url_poster: <<poster_url>>
@ -137,8 +135,8 @@ templates:
sort_title: 070_+<<level>>_<<sort_title_name>> sort_title: 070_+<<level>>_<<sort_title_name>>
sync_mode: sync sync_mode: sync
schedule: schedule:
- weekly(wednesday) - weekly(monday)
- weekly(sunday) - weekly(thursday)
visible_library: false visible_library: false
url_poster: <<poster_url>> url_poster: <<poster_url>>
@ -151,8 +149,8 @@ templates:
sort_title: 080_+<<level>>_<<sort_title_name>> sort_title: 080_+<<level>>_<<sort_title_name>>
sync_mode: sync sync_mode: sync
schedule: schedule:
- weekly(wednesday) - weekly(monday)
- weekly(sunday) - weekly(thursday)
visible_library: false visible_library: false
url_poster: <<poster_url>> url_poster: <<poster_url>>
@ -212,6 +210,8 @@ templates:
any: any:
studio: <<studio>> studio: <<studio>>
url_poster: <<poster>> url_poster: <<poster>>
schedule:
- weekly(wednesday)
Network: Network:
default: default:
@ -226,6 +226,8 @@ templates:
any: any:
network: <<network>> network: <<network>>
url_poster: <<poster>> url_poster: <<poster>>
schedule:
- weekly(wednesday)
Country: Country:
default: default:
@ -236,8 +238,7 @@ templates:
sort_title: 110_+<<level>>_<<sort_title_name>> sort_title: 110_+<<level>>_<<sort_title_name>>
sync_mode: sync sync_mode: sync
schedule: schedule:
- weekly(wednesday) - weekly(saturday)
- weekly(sunday)
visible_library: false visible_library: false
url_poster: <<poster_url>> url_poster: <<poster_url>>
@ -247,7 +248,5 @@ templates:
sort_title_name: <<collection_name>> sort_title_name: <<collection_name>>
sort_title: 120_+<<level>>_<<sort_title_name>> sort_title: 120_+<<level>>_<<sort_title_name>>
sync_mode: sync sync_mode: sync
schedule: schedule: daily
- weekly(wednesday)
- weekly(sunday)
visible_library: true visible_library: true

View File

@ -15,7 +15,7 @@ templates:
visible_library: false visible_library: false
visible_shared: false visible_shared: false
visible_home: false visible_home: false
schedule: monthly(17) schedule: monthly(14)
Per_Genre: Per_Genre:
smart_filter: smart_filter:
@ -30,7 +30,9 @@ templates:
visible_library: false visible_library: false
visible_shared: false visible_shared: false
visible_home: false visible_home: false
schedule: weekly(saturday) schedule:
- weekly(monday)
- weekly(thursday)
Per_Country_Movies: Per_Country_Movies:
smart_filter: smart_filter:
@ -45,7 +47,8 @@ templates:
visible_library: false visible_library: false
visible_shared: false visible_shared: false
visible_home: false visible_home: false
schedule: weekly(saturday) schedule:
- weekly(saturday)
Per_Country_Shows: Per_Country_Shows:
smart_filter: smart_filter:
@ -60,5 +63,6 @@ templates:
visible_library: false visible_library: false
visible_shared: false visible_shared: false
visible_home: false visible_home: false
schedule: weekly(saturday) schedule:
- weekly(saturday)

View File

@ -66,6 +66,27 @@ This collection uses a combination of all these prefixes, and are always sorted
- Ex. yearly(02/21), all[weekly(friday),range(02/21-03/31)], yearly(04/01) - Ex. yearly(02/21), all[weekly(friday),range(02/21-03/31)], yearly(04/01)
- Run on Feb. 21 every year (regardless of day of week), then run every Friday between Feb. 21 and Mar. 31, then run Apr. 1 (regardless of day of week) - Run on Feb. 21 every year (regardless of day of week), then run every Friday between Feb. 21 and Mar. 31, then run Apr. 1 (regardless of day of week)
- Useful for awards or things that need to appear and be updated only for a certain time frame of the year - Useful for awards or things that need to appear and be updated only for a certain time frame of the year
- No need to schedule everything on the same day:
- Schedules for collection templates:
- New: daily
- Chart: daily
- General: daily (overridden by other schedules)
- Holiday: no default, per-holiday
- Award: weekly(sunday)
- ActorAward: weekly(sunday)
- Genres: weekly(monday), weekly(thursday)
- Decade: weekly(monday), weekly(thursday) (overridden by other schedules)
- Collection: weekly(tuesday), weekly(friday) (overridden by other schedules)
- Franchise: weekly(wednesday), weekly(saturday)
- Countries: weekly(saturday)
- Networks: weekly(wednesday)
- Studios: weekly(wednesday)
- People: weekly(sunday)
- Also goes for monthly schedules, no need to always make it the first of the month: monthly(1), monthly(15)
- Past Award Winners collections run once-a-month, staggered throughout the month
- Per-Decade collections run once-a-month
- Per-Genre collections run weekly(monday), weekly(thursday)
- Per-Country collections run weekly(saturday)
## Sorting ## Sorting