Merge remote-tracking branch 'bullmoose20/nightly-add_letterboxd' into nightly

pull/2062/merge
Yozora XCII 6 months ago
commit fd9fb96dda

@ -0,0 +1,230 @@
##############################################################################
# Letterboxd Charts Collections #
# Created by Yozora, Bullmoose20, & Sohjiro #
# Special thanks to Kevin2kkelly for their contributions to this #
# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://kometa.wiki/en/latest/defaults/chart/letterboxd.html #
##############################################################################
external_templates:
default: templates
template_variables:
collection_section: "020"
image: chart/<<mapping_name_encoded>>
sort_title: <<sort_prefix>><<collection_section>><<pre>><<order_<<key>>>>LB_<<sort>>
templates:
letterboxd_list:
letterboxd_list: https://letterboxd.com/<<user>>/list/<<list>>
collections:
"Letterboxd Top 250":
variables:
key: top_250
template:
- name: letterboxd_list
user: dave
list: official-top-250-narrative-feature-films
- name: shared
translation_key: letterboxd_top_250
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Box Office Mojo All Time 100":
variables:
key: boxofficemojo_100
template:
- name: letterboxd_list
user: matthew
list: box-office-mojo-all-time-worldwide
- name: shared
translation_key: box_office_mojo_all_time_100
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"AFI 100 Years 100 Movies":
variables:
key: afi_100
template:
- name: letterboxd_list
user: afi
list: afis-100-years100-movies-10th-anniversary
- name: shared
translation_key: afi_100_years_100_movies
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Sight & Sound Greatest Films":
variables:
key: sight_sound
template:
- name: letterboxd_list
user: bfi
list: sight-and-sounds-greatest-films-of-all-time
- name: shared
translation_key: sight_and_sound_greatest_films
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"1,001 To See Before You Die":
variables:
key: 1001_movies
template:
- name: letterboxd_list
user: gubarenko
list: 1001-movies-you-must-see-before-you-die-2021
- name: shared
translation_key: 1001_movies_to_see_before_you_die
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Edgar Wright's 1,000 Favorites":
variables:
key: edgarwright
template:
- name: letterboxd_list
user: crew
list: edgar-wrights-1000-favorite-movies
- name: shared
translation_key: edgar_wrights_1000_favorites
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Roger Ebert's Great Movies":
variables:
key: rogerebert
template:
- name: letterboxd_list
user: dvideostor
list: roger-eberts-great-movies
- name: shared
translation_key: roger_eberts_great_movies
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Top 250 Women-Directed":
variables:
key: women_directors
template:
- name: letterboxd_list
user: jack
list: women-directors-the-official-top-250-narrative
- name: shared
translation_key: top_250_women_directed
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Top 100 Black-Directed":
variables:
key: black_directors
template:
- name: letterboxd_list
user: jack
list: black-directors-the-official-top-100-narrative
- name: shared
translation_key: top_100_black_directed
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Top 250 Most Fans":
variables:
key: most_fans
template:
- name: letterboxd_list
user: jack
list: official-top-250-films-with-the-most-fans
- name: shared
translation_key: top_250_most_fans
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Top 250 Documentaries":
variables:
key: documentaries
template:
- name: letterboxd_list
user: jack
list: official-top-250-documentary-films
- name: shared
translation_key: top_250_documentaries
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Top 100 Animation":
variables:
key: animation
template:
- name: letterboxd_list
user: lifeasfiction
list: letterboxd-100-animation
- name: shared
translation_key: top_100_animation
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"Top 250 Horror":
variables:
key: horror
template:
- name: letterboxd_list
user: darrencb
list: letterboxds-top-250-horror-films
- name: shared
translation_key: top_250_horror
summary: <<summary_<<key>>>>
- name: arr
- name: custom
"IMDb Top 250 (Letterboxd)":
variables:
key: imdb_top_250
template:
- name: letterboxd_list
user: dave
list: imdb-top-250
- name: shared
translation_key: imdb_top_250
summary: <<summary_<<key>>>>
use_imdb_top_250: false
- name: arr
- name: custom
"Oscar Best Picture Winners":
variables:
key: oscars
template:
- name: letterboxd_list
user: jake_ziegler
list: academy-award-winners-for-best-picture
- name: shared
translation_key: oscars_best_picture_winners
summary: <<summary_<<key>>>>
use_oscars: false
- name: arr
- name: custom
"Cannes Palme d'Or Winners":
variables:
key: cannes
template:
- name: letterboxd_list
user: brsan
list: cannes-palme-dor-winners
- name: shared
translation_key: cannes_palmes_dor_winners
summary: <<summary_<<key>>>>
use_cannes: false
- name: arr
- name: custom

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

@ -48,7 +48,7 @@ templates:
overlays: overlays:
Oscars Best Picture: Oscars Best Picture:
variables: {key: oscars, weight: 180} variables: {key: oscars, weight: 190}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000003 event_id: ev0000003
@ -59,7 +59,7 @@ overlays:
winning: true winning: true
Oscars Best Director: Oscars Best Director:
variables: {key: oscars_director, weight: 170} variables: {key: oscars_director, weight: 180}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000003 event_id: ev0000003
@ -72,7 +72,7 @@ overlays:
winning: true winning: true
Golden Globe Winner: Golden Globe Winner:
variables: {key: golden, weight: 160} variables: {key: golden, weight: 170}
template: [name: standard, name: ribbon] template: [name: standard, name: ribbon]
imdb_award: imdb_award:
event_id: ev0000292 event_id: ev0000292
@ -93,7 +93,7 @@ overlays:
winning: true winning: true
Golden Globe Best Director: Golden Globe Best Director:
variables: {key: golden_director, weight: 150} variables: {key: golden_director, weight: 160}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000292 event_id: ev0000292
@ -105,7 +105,7 @@ overlays:
winning: true winning: true
BAFTA Winners: BAFTA Winners:
variables: {key: bafta, weight: 140} variables: {key: bafta, weight: 150}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000123 event_id: ev0000123
@ -114,7 +114,7 @@ overlays:
winning: true winning: true
Cannes Winners: Cannes Winners:
variables: {key: cannes, weight: 130} variables: {key: cannes, weight: 140}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000147 event_id: ev0000147
@ -123,7 +123,7 @@ overlays:
winning: true winning: true
Berlinale Winners: Berlinale Winners:
variables: {key: berlinale, weight: 120} variables: {key: berlinale, weight: 130}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000091 event_id: ev0000091
@ -132,7 +132,7 @@ overlays:
winning: true winning: true
Venice Winners: Venice Winners:
variables: {key: venice, weight: 110} variables: {key: venice, weight: 120}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000681 event_id: ev0000681
@ -141,7 +141,7 @@ overlays:
winning: true winning: true
Sundance Winners: Sundance Winners:
variables: {key: sundance, weight: 100} variables: {key: sundance, weight: 110}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000631 event_id: ev0000631
@ -150,7 +150,7 @@ overlays:
winning: true winning: true
Emmys Winner: Emmys Winner:
variables: {key: emmys, weight: 90} variables: {key: emmys, weight: 100}
template: [name: standard, name: ribbon] template: [name: standard, name: ribbon]
imdb_award: imdb_award:
event_id: ev0000223 event_id: ev0000223
@ -183,7 +183,7 @@ overlays:
winning: true winning: true
Critics Choice Winners: Critics Choice Winners:
variables: {key: choice, weight: 80} variables: {key: choice, weight: 90}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000133 event_id: ev0000133
@ -192,7 +192,7 @@ overlays:
winning: true winning: true
Spirit Winners: Spirit Winners:
variables: {key: spirit, weight: 70} variables: {key: spirit, weight: 80}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000349 event_id: ev0000349
@ -201,7 +201,7 @@ overlays:
winning: true winning: true
Cesar Winners: Cesar Winners:
variables: {key: cesar, weight: 60} variables: {key: cesar, weight: 70}
template: {name: standard, allowed_libraries: movie} template: {name: standard, allowed_libraries: movie}
imdb_award: imdb_award:
event_id: ev0000157 event_id: ev0000157
@ -210,9 +210,14 @@ overlays:
winning: true winning: true
IMDb Top 250: IMDb Top 250:
variables: {key: imdb, weight: 50, imdb_key: top} variables: {key: imdb, weight: 60, imdb_key: top}
template: [name: standard, name: ribbon] template: [name: standard, name: ribbon]
Letterboxd Top 250:
variables: {key: letterboxd, weight: 50}
template: {name: standard, allowed_libraries: movie}
letterboxd_list: https://letterboxd.com/dave/list/official-top-250-narrative-feature-films/
Rotten Tomatoes Certified Fresh: Rotten Tomatoes Certified Fresh:
variables: {key: rotten, weight: 40, mdb_key: certifiedfresh} variables: {key: rotten, weight: 40, mdb_key: certifiedfresh}
template: [name: standard, name: ribbon] template: [name: standard, name: ribbon]

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

@ -0,0 +1,105 @@
# Letterboxd Charts Collections
The `letterboxd` Default Collection File is used to create collections based on lists from Letterboxd.
![](../images/letterboxd.png)
## Requirements & Recommendations
Supported Library Types: Movie
Recommendations: Users might consider increasing the value set for the template variable `cache_builders:` as several lists are in excess of 1,000 items and are not updated daily.
The collections `IMDb Top 250 (Letterboxd)`, `Oscar Best Picture Winners`, and `Cannes Palme d'Or Winners` are turned off by default as these collections already exist within other defaults. Refer to the examples below for turning the collections on within the Letterboxd defaults using template variables.
## Collections Section 020
| Collection | Key | Description |
|:---------------------------------|:--------------------|:------------------------------------------------------------------------------|
| `Letterboxd Top 250` | `top_250` | Collection of the Top 250 films on Letterboxd. |
| `Box Office Mojo All Time 100` | `boxofficemojo_100` | Collection of Box Office Mojo's all-time top 100 films. |
| `AFI 100 Years 100 Movies` | `afi_100` | Collection of AFI's 100 Years...100 Movies. |
| `Sight & Sound Greatest Films` | `sight_sound` | Collection of Sight and Sound's Greatest Films of All Time. |
| `1,001 To See Before You Die` | `1001_movies` | Collection of 1,001 Movies You Must See Before You Die. |
| `Edgar Wright's 1,000 Favorites` | `edgarwright` | Collection of Edgar Wright's 1,000 Favorite Movies. |
| `Roger Ebert's Great Movies` | `rogerebert` | Collection of films from Roger Ebert's "Great Movies" essays. |
| `Top 250 Women-Directed` | `women_directors` | Collection of the Top 250 Women-Directed films on Letterboxd. |
| `Top 100 Black-Directed` | `black_directors` | Collection of the Top 100 Black-Directed films on Letterboxd. |
| `Top 250 Most Fans` | `most_fans` | Collection of the Top 250 films with the most fans on Letterboxd. |
| `Top 250 Documentaries` | `documentaries` | Collection of the Top 250 documentary films on Letterboxd. |
| `Top 100 Animation` | `animation` | Collection of the Top 100 animated films on Letterboxd. |
| `Top 250 Horror` | `horror` | Collection of the Top 250 horror films on Letterboxd. |
| `IMDb Top 250 (Letterboxd)` | `imdb_top_250` | Collection of the Top 250 Movies on IMDb, from Letterboxd. |
| `Oscar Best Picture Winners` | `oscars` | Collection of films that have won the Academy Award for Best Picture. |
| `Cannes Palme d'Or Winners` | `cannes` | Collection of films that have won the Palme d'Or at the Cannes Film Festival. |
## Config
The below YAML in your config.yml will create the collections:
```yaml
libraries:
Movies:
collection_files:
- default: letterboxd
```
## Template Variables
Template Variables can be used to manipulate the file in various ways to slightly change how it works without having to
make your own local copy.
Note that the `template_variables:` section only needs to be used if you do want to actually change how the defaults
work. Any value not specified will use its default value if it has one if not it's just ignored.
??? abstract "Variable Lists (click to expand)"
* **File-Specific Template Variables** are variables available specifically for this Kometa Defaults file.
* **Shared Template Variables** are additional variables shared across the Kometa Defaults.
=== "File-Specific Template Variables"
| Variable | Description & Values |
|:---------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sync_mode` | **Description:** Changes the Sync Mode for all collections in a Defaults file.<br>**Default:** `sync`<br>**Values:**<table class="clearTable"><tr><td>`sync`</td><td>Add and Remove Items based on Builders</td></tr><tr><td>`append`</td><td>Only Add Items based on Builders</td></tr></table> |
| `sync_mode_<<key>>`<sup>1</sup> | **Description:** Changes the Sync Mode of the specified key's collection.<br>**Default:** `sync_mode`<br>**Values:**<table class="clearTable"><tr><td>`sync`</td><td>Add and Remove Items based on Builders</td></tr><tr><td>`append`</td><td>Only Add Items based on Builders</td></tr></table> |
| `collection_order` | **Description:** Changes the Collection Order for all collections in a Defaults file.<br>**Default:** `custom`<br>**Values:**<table class="clearTable"><tr><td>`release`</td><td>Order Collection by Release Dates</td></tr><tr><td>`alpha`</td><td>Order Collection Alphabetically</td></tr><tr><td>`custom`</td><td>Order Collection Via the Builder Order</td></tr><tr><td>[Any `plex_search` Sort Option](../../files/builders/plex.md#sort-options)</td><td>Order Collection by any `plex_search` Sort Option</td></tr></table> |
| `collection_order_<<key>>`<sup>1</sup> | **Description:** Changes the Collection Order of the specified key's collection.<br>**Default:** `collection_order`<br>**Values:**<table class="clearTable"><tr><td>`release`</td><td>Order Collection by Release Dates</td></tr><tr><td>`alpha`</td><td>Order Collection Alphabetically</td></tr><tr><td>`custom`</td><td>Order Collection Via the Builder Order</td></tr><tr><td>[Any `plex_search` Sort Option](../../files/builders/plex.md#sort-options)</td><td>Order Collection by any `plex_search` Sort Option</td></tr></table> |
1. Each default collection has a `key` that when calling to effect a specific collection you must replace
`<<key>>` with when calling.
=== "Shared Template Variables"
{%
include-markdown "../collection_variables.md"
%}
???+ example "Example Template Variable Amendments"
The below is an example config.yml extract with some Template Variables added in to change how the file works.
Click the :fontawesome-solid-circle-plus: icon to learn more
```yaml
libraries:
Movies:
collection_files:
- default: letterboxd
template_variables:
use_imdb_top_250: true #(1)!
use_oscars: true #(2)!
use_cannes: true #(3)!
visible_library_top_250: true #(4)!
visible_home_top_250: true #(5)!
visible_shared_top_250: true #(6)!
```
1. Create the "IMDb Top 250 (Letterboxd)" collection
2. Create the "Oscar Best Picture Winners" collection
3. Create the "Cannes Palme d'Or Winners" collection
4. Pin the "Letterboxd Top 250" collection to the Recommended tab of the library
5. Pin the "Letterboxd Top 250" collection to the home screen of the server owner
6. Pin the "Letterboxd Top 250" collection to the home screen of other users of the server

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

@ -13,20 +13,21 @@ Supported Overlay Level: Movie, Show
| Ribbon | Key | Weight | | Ribbon | Key | Weight |
|:--------------------------------|:------------------|:-------| |:--------------------------------|:------------------|:-------|
| Oscars Best Picture | `oscars` | `180` | | Oscars Best Picture | `oscars` | `190` |
| Oscars Best Director | `oscars_director` | `170` | | Oscars Best Director | `oscars_director` | `180` |
| Golden Globe Winner | `golden` | `160` | | Golden Globe Winner | `golden` | `170` |
| Golden Globe Director | `golden_director` | `150` | | Golden Globe Director | `golden_director` | `160` |
| BAFTA Winner | `bafta` | `140` | | BAFTA Winner | `bafta` | `150` |
| Cannes Winner | `cannes` | `130` | | Cannes Winner | `cannes` | `140` |
| Berlinale Winner | `berlinale` | `120` | | Berlinale Winner | `berlinale` | `130` |
| Venice Winner | `venice` | `110` | | Venice Winner | `venice` | `120` |
| Sundance Winner | `sundance` | `100` | | Sundance Winner | `sundance` | `110` |
| Emmys Winner | `emmys` | `90` | | Emmys Winner | `emmys` | `100` |
| Critic's Choice Winner | `choice` | `80` | | Critic's Choice Winner | `choice` | `90` |
| Independent Spirit Award Winner | `spirit` | `70` | | Independent Spirit Award Winner | `spirit` | `80` |
| César Winner | `cesar` | `60` | | César Winner | `cesar` | `70` |
| IMDb Top 250 | `imdb` | `50` | | IMDb Top 250 | `imdb` | `60` |
| Letterboxd Top 250 | `letterboxd` | `50` |
| Rotten Tomatoes Certified Fresh | `rotten` | `40` | | Rotten Tomatoes Certified Fresh | `rotten` | `40` |
| Metacritic Must See | `metacritic` | `30` | | Metacritic Must See | `metacritic` | `30` |
| Common Sense Selection | `common` | `20` | | Common Sense Selection | `common` | `20` |

Loading…
Cancel
Save