Skip to content

Commit

Permalink
[8] [Defaults] Fix Streaming Sort Order & Add discover_with_<<key>> (
Browse files Browse the repository at this point in the history
  • Loading branch information
YozoraXCII authored and actions-user committed Oct 23, 2024
1 parent 4cea31b commit a94e9be
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0-build7
2.1.0-build8
9 changes: 5 additions & 4 deletions defaults/both/streaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ templates:
conditions:
- originals_only: false
library_type: movie
value: primary_release_date.desc
value: popularity.desc
- originals_only: false
library_type: show
value: first_air_date.desc
value: popularity.desc
originals:
conditions:
- originals_only: true
Expand Down Expand Up @@ -68,7 +68,8 @@ templates:
limit: "500"
sync_mode: sync
sync_mode_<<key>>: <<sync_mode>>
sort_by: popularity.desc
discover_with_<<key>>: <<discover_with>>
sort_by: release.desc
sort_by_<<key>>: <<sort_by>>
run_definition:
- <<use_<<key>>>>
Expand All @@ -82,7 +83,7 @@ templates:
limit: <<limit>>
tmdb_discover:
limit: <<discover_limit>>
with_watch_providers: <<discover_with>>
with_watch_providers: <<discover_with_<<key>>>>
watch_region: <<discover_region>>
sort_by: <<discover_sort>>

Expand Down
3 changes: 2 additions & 1 deletion defaults/overlays/streaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ templates:
region: "US"
limit: "0"
originals_only: false
discover_with_<<key>>: <<discover_with>>
optional:
- use_<<key>>
- use_<<tmdb_key>>
Expand Down Expand Up @@ -112,7 +113,7 @@ templates:
mdblist_list: https://mdblist.com/lists/k0meta/<<key>>-<<originals>>
tmdb_discover:
limit: <<discover_limit>>
with_watch_providers: <<discover_with>>
with_watch_providers: <<discover_with_<<key>>>>
watch_region: <<discover_region>>
sort_by: <<discover_sort>>

Expand Down
1 change: 1 addition & 0 deletions docs/defaults/both/streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ work. Any value not specified will use its default value if it has one if not it
| `originals_only` | **Description:** Changes Streaming Service lists to only show original content produced by the service.<br>**Note**: Cannot be used with `region`, and only produces collections for `amazon`, `appletv`, `disney`, `max`, `hulu`, `netflix`, `paramount`, `peacock`<br>**Default:** `false`<br>**Values:** `true`, `false` |
| `name_format` | **Description:** Changes the title format of the Dynamic Collections.<br>**Default:** `<<key_name>> <<library_translationU>>s`<br>**Values:** Any string with `<<key_name>>` in it. |
| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.<br>**Default:** `<<library_translationU>>s streaming on <<key_name>>.`<br>**Values:** Any string. |
| `discover_with_<<key>>` | **Description:** Overrides the TMDb Watch Provider used for the specfied key. This is only needed if a specific `region` has a different ID for the watch provider.<br>**Default:** `<<discover_with>>`<br>**Values:** Any TMDb Watch Provider ID for [Movies](https://developer.themoviedb.org/reference/watch-providers-movie-list) / [Shows](https://developer.themoviedb.org/reference/watch-provider-tv-list) based on the user's region |

1. Each default collection has a `key` that when calling to effect a specific collection you must replace
`<<key>>` with when calling.
Expand Down
1 change: 1 addition & 0 deletions docs/defaults/overlays/streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ work. Any value not specified will use its default value if it has one if not it
| `region` | **Description:** Changes some Streaming Service lists to regional variants (see below table for more information.<br>**Default:** `US`<br>**Values:** Any [ISO 3166-1 Code](https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes) of the region where the streaming information should be based on. |
| `originals_only` | **Description:** Changes Streaming Service overlays to only apply to original content produced by the service.<br>**Note**: Cannot be used with `region`, and only produces overlays for `amazon`, `appletv`, `disney`, `max`, `hulu`, `netflix`, `paramount`, `peacock`<br>**Default:** `false`<br>**Values:** `true`, `false` |
| `weight_<<key>>`<sup>1</sup> | **Description:** Controls the weight of the Overlay. Higher numbers have priority.<br>**Values:** Any Number |
| `discover_with_<<key>>` | **Description:** Overrides the TMDb Watch Provider used for the specfied key. This is only needed if a specific `region` has a different ID for the watch provider.<br>**Default:** `<<discover_with>>`<br>**Values:** Any TMDb Watch Provider ID for [Movies](https://developer.themoviedb.org/reference/watch-providers-movie-list) / [Shows](https://developer.themoviedb.org/reference/watch-provider-tv-list) based on the user's region |

1. Each default overlay has a `key` that when calling to effect a specific overlay you must replace `<<key>>`
with when calling.
Expand Down

0 comments on commit a94e9be

Please sign in to comment.