- Implement `imdb_search` (needs nightly!)

This commit is contained in:
nwithan8 2023-12-13 17:39:09 -07:00
parent 4a0cdb6b76
commit 50cf6a0d01
3 changed files with 136 additions and 40 deletions

View File

@ -8,15 +8,35 @@ templates:
# Dynamic Collections Templates
# -----------------------------
# Per-year award winners
Yearly_Oscars_Winners:
# This will always be a year behind (2020 movies win at the 2021 Oscars) - The collection is the 2020 movies that won at the 2021 Oscars
default:
imdb_sort: moviemeter,asc
allowed_library_types: movie
summary: <<key>> Academy Awards (Oscars) Winners
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_award:
event_id: ev0000003
event_year: <<key>>
winning: true
category_filter:
- Best Motion Picture of the Year
- Best Original Screenplay
- Best Adapted Screenplay
- Best Achievement in Cinematography
- Best Achievement in Film Editing
- Best Achievement in Production Design
- Best Achievement in Costume Design
- Best Sound
- Best Achievement in Makeup and Hairstyling
- Best Achievement in Music Written for Motion Pictures (Original Score)
- Best Achievement in Music Written for Motion Pictures (Original Song)
- Best Achievement in Visual Effects
- Best Documentary Feature
- Best Animated Feature Film
- Best Animated Short Film
- Best Live Action Short Film
- Best Documentary Short Film
- Best International Feature Film
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/oscars/<<key>>.jpg
schedule: monthly(05)
@ -54,11 +74,21 @@ templates:
schedule: monthly(08)
Yearly_Golden_Globes_Winners:
default:
imdb_sort: moviemeter,asc
summary: <<key>> Golden Globe Winners
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_award:
event_id: ev0000292
event_year: <<key>>
winning: true
category_filter:
- Best Motion Picture, Animated
- Best Motion Picture, Drama
- Best Motion Picture, Musical or Comedy
- Best Motion Picture, Non-English Language
- Best Original Score, Motion Picture
- Best Original Song, Motion Picture
- Best Screenplay, Motion Picture
- Cinematic and Box Office Achievement
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/golden/<<key>>.jpg
schedule: monthly(09)
@ -96,11 +126,18 @@ templates:
schedule: monthly(12)
Yearly_Razzie_Winners:
default:
imdb_sort: moviemeter,asc
summary: <<key>> Golden Raspberry Winners
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_award:
event_id: ev0000558
event_year: <<key>>
winning: true
category_filter:
- Worst Picture
- Worst Remake, Rip-Off or Sequel
- Worst Screen Combo
- Worst Screenplay
- Redeemer Award
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/razzie/<<key>>.jpg
schedule: monthly(13)
@ -108,10 +145,28 @@ collections:
### This year's Academy Awards
# ---------------------------------
# This current year's Oscar nominees (all)
# Only visible on home screen during Oscar season
"🎖This Year's Oscar Nominees":
summary: "Who will take home the trophy?"
template: { name: Award,
level: "++++" }
imdb_award:
event_id: ev0000003
event_year: 2023 # TODO: Change this every year
collection_order: random
schedule:
- yearly(02/01)
- all[weekly(friday),range(02/01-03/31)]
- yearly(04/01)
# You have to schedule it to run again after visibility timeframe for visibility to switch back
visible_home: range(02/01-03/31)
visible_shared: range(02/01-03/31)
visible_library: range(02/01-03/31)
# This current year's Best Picture Oscar nominees
# Only visible on home screen during Oscar season
"🎬 This Year's Best Picture Nominees":
# TODO: NEED TO BUILD MANUALLY
template: { name: Award,
level: "++++++" }
summary: "Who will take home the trophy?"
@ -120,6 +175,10 @@ collections:
- all[weekly(friday),range(02/01-03/31)]
- yearly(04/01)
# You have to schedule it to run before and after visibility timeframe for visibility to switch
imdb_award:
event_id: ev0000003
event_year: 2023 # TODO: Change this every year
category_filter: Best Motion Picture of the Year
collection_order: release.asc
visible_home: range(02/01-03/31)
visible_shared: range(02/01-03/31)
@ -279,26 +338,6 @@ collections:
visible_library: range(02/01-03/31)
# This current year's Oscar nominees (all)
# Only visible on home screen during Oscar season
"🎖This Year's Oscar Nominees":
summary: "Who will take home the trophy?"
template: { name: Award,
level: "++++" }
trakt_list:
# TODO: NEED TO REPLACE MANUALLY
- https://trakt.tv/users/jcbwoldseth/lists/oscar-race-2023
collection_order: random
schedule:
- yearly(02/01)
- all[weekly(friday),range(02/01-03/31)]
- yearly(04/01)
# You have to schedule it to run again after visibility timeframe for visibility to switch back
visible_home: range(02/01-03/31)
visible_shared: range(02/01-03/31)
visible_library: range(02/01-03/31)
### Historical Awards
# ---------------------------------
@ -308,8 +347,8 @@ collections:
summary: "Oscar-winning Movies"
template: { name: Award,
level: "++" }
imdb_list:
- https://www.imdb.com/search/title/?title_type=feature,documentary&groups=oscar_winner
imdb_search:
event.winning: oscar
schedule:
- yearly(02/01)
- all[weekly(friday),range(02/01-03/31)]
@ -328,7 +367,8 @@ collections:
template: { name: Award,
level: "++" }
imdb_list:
- https://www.imdb.com/search/title/?groups=best_director_winners&sort=year%2Cdesc
# TODO: Might need to change
- https://www.imdb.com/search/title/?title_type=feature&groups=best_director_winner
schedule:
- yearly(02/01)
- all[weekly(friday),range(02/01-03/31)]
@ -347,7 +387,8 @@ collections:
template: { name: Award,
level: "++" }
imdb_list:
- https://www.imdb.com/search/title/?groups=best_picture_winners&sort=year%2Cdesc
# TODO: Might need to change
- https://www.imdb.com/search/title/?title_type=feature&groups=best_picture_winner
schedule:
- yearly(02/01)
- all[weekly(friday),range(02/01-03/31)]
@ -499,7 +540,6 @@ collections:
# visible_library: true
dynamic_collections:
## Use DC as suffix to avoid name conflicts with static collections
Yearly Oscars Winners DC: # mapping name does not matter just needs to be unique
type: number
sync: true

View File

@ -3,6 +3,9 @@ external_templates:
- repo: templates/dynamic_collections
templates:
# TODO: Figure out year delay for awards (2023 awards given in 2024, so when collection runs in 2024, it needs to look up 2023)
# This is not true for all awards (some are given in the same year)
# Dynamic Collections Templates
# -----------------------------
# Per-year award winners
@ -12,7 +15,48 @@ templates:
allowed_library_types: show
summary: <<key>> Emmy Winners
sort_title: 050_Emmy_Winners_<<key>>
imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=emmy_winner&sort=<<imdb_sort>>
imdb_award:
event_id: ev0000206
event_year: <<key>>
winning: true
category_filter:
- Outstanding Art Direction/Set Decoration/Scenic Design
- Outstanding Arts and Popular Culture Program
- Outstanding Casting
- Outstanding Costume Design/Styling
- Outstanding Culinary Series
- Outstanding Daytime Drama Series
- Outstanding Daytime Special
- Outstanding Directing Team for a Multiple Camera Daytime Non-Fiction Program
- Outstanding Directing Team for a Single Camera Daytime Non-Fiction Program
- Outstanding Drama Series Directing Team
- Outstanding Drama Series Writing Team
- Outstanding Entertainment News Series
- Outstanding Entertainment Talk Show
- Outstanding Game Show
- Outstanding Guest Performer in a Drama Series
- Outstanding Hairstyling
- Outstanding Informative Talk Show
- Outstanding Instructional and How-To Program
- Outstanding Interactive Media for a Daytime Program
- Outstanding Legal/Courtroom Program
- Outstanding Lifestyle Program
- Outstanding Lighting Direction
- Outstanding Live Sound Mixing and Sound Editing
- Outstanding Main Title and Graphic Design
- Outstanding Makeup
- Outstanding Multiple Camera Editing
- Outstanding Music Direction and Composition
- Outstanding Original Song
- Outstanding Short Form Daytime Program
- Outstanding Sound Mixing and Sound Editing
- Outstanding Special Effects Costumes, Makeup and Hairstyling
- Outstanding Technical Team, Camera Work, Video
- Outstanding Travel, Adventure and Nature Program
- Outstanding Writing Team for a Daytime Non-Fiction Series or Special
- Outstanding Young Performer in a Drama Series
- Outstanding Cinematography
- Outstanding Single Camera Editing
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/emmys/<<key>>.jpg
schedule: monthly(14)
@ -22,10 +66,19 @@ templates:
allowed_library_types: show
summary: <<key>> Golden Globe Winners
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_award:
event_id: ev0000292
event_year: <<key>>
winning: true
category_filter:
- Best Television Limited Series, Anthology Series, or Motion Picture Made for Television
- Best Television Series, Drama
- Best Television Series, Musical or Comedy
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/golden/<<key>>.jpg
schedule: monthly(09)
# TODO: Add this year's Emmy and Golden Globe nominees
dynamic_collections:
## Use DC as suffix to avoid name conflicts with static collections
Yearly Emmy Winners DC: # mapping name does not matter just needs to be unique

View File

@ -60,8 +60,11 @@ collections:
template: { name: Genre,
level: "++" }
summary: "The suspense is killing us!"
imdb_list:
- https://www.imdb.com/search/keyword/?keywords=psychological-thriller&ref_=kw_ref_rt_usr&sort=release_date,desc&mode=detail&page=1&title_type=movie&genres=Thriller&user_rating=5.0%2C&release_date=2000%2C
imdb_search:
type: movie, short, tv_movie, tv_special
keywords: psychological-thriller
genres: thriller
rating.gte: 5.0
collection_order: random
visible_library: true
visible_home: false # Not advertised on the home page