Skip to content

Commit

Permalink
[19] Added cache_builders granularity to letterboxd defaults (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin2kkelly authored and actions-user committed Jun 25, 2024
1 parent 5904a6b commit a55e8f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.2-build18
2.0.2-build19
4 changes: 4 additions & 0 deletions defaults/chart/letterboxd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ external_templates:
templates:
letterboxd_list:
letterboxd_list: https://letterboxd.com/<<user>>/list/<<list>>
default:
cache_builders: 1
cache_builders_<<key>>: <<cache_builders>>
cache_builders: <<cache_builders_<<key>>>>

collections:
"Letterboxd Top 250":
Expand Down
8 changes: 7 additions & 1 deletion docs/defaults/chart/letterboxd.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ work. Any value not specified will use its default value if it has one if not it
| `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> |
| `cache_builders_<<key>>` | **Description:** Changes the Builder Cache of the specified key's collection.<br>**Default:** `1`<br>**Values:** number 0 or greater |

1. Each default collection has a `key` that when calling to effect a specific collection you must replace
`<<key>>` with when calling.
Expand Down Expand Up @@ -94,6 +95,9 @@ work. Any value not specified will use its default value if it has one if not it
visible_library_top_250: true #(4)!
visible_home_top_250: true #(5)!
visible_shared_top_250: true #(6)!
cache_builders: 7 #(7)!
cache_builders_1001_movies: 30 #(8)!
cache_builders_edgarwright: 30 #(9)!
```

1. Create the "IMDb Top 250 (Letterboxd)" collection
Expand All @@ -102,4 +106,6 @@ work. Any value not specified will use its default value if it has one if not it
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

7. Set the value for `cache_builders` for all collections (except those explicity defined with `cache_builders_<<key>>`) to 7 days
8. Set the value for `cache_builders` for the "1,001 To See Before You Die" collection to 30 days
9. Set the value for `cache_builders` for the "Edgar Wright's 1,000 Favorites" collection to 30 days

0 comments on commit a55e8f7

Please sign in to comment.