diff --git a/defaults/overlays/images/streaming/Crave.png b/defaults/overlays/images/streaming/Crave.png new file mode 100644 index 00000000..eb5d48aa Binary files /dev/null and b/defaults/overlays/images/streaming/Crave.png differ diff --git a/defaults/overlays/images/streaming/discovery.png b/defaults/overlays/images/streaming/discovery.png new file mode 100644 index 00000000..745f4502 Binary files /dev/null and b/defaults/overlays/images/streaming/discovery.png differ diff --git a/defaults/overlays/streaming.yml b/defaults/overlays/streaming.yml index bb869f13..31f1c0e0 100644 --- a/defaults/overlays/streaming.yml +++ b/defaults/overlays/streaming.yml @@ -9,6 +9,10 @@ external_templates: pmm: templates template_variables: + allowed_library_types: + - <>>> + - <>>> + - <> group: streaming default: horizontal_align: left @@ -35,75 +39,124 @@ external_templates: back_color: "#00000099" back_width: 305 back_height: 105 - pmm: streaming/<> + file: config/streaming/<>.png templates: - streaming: + mdb_streaming: + allowed_library_types: + - <> ignore_blank_results: true - mdblist_list: https://mdblist.com/lists/plexmetamanager/<>-<>s + mdblist_list: https://mdblist.com/lists/plexmetamanager/<>-<>s<> + conditionals: + allowed_streaming: + conditions: + - region.not: uk + key: [all4, britbox, hayu, now] + value: False + - region.not: ca + key: [crave] + value: False + - region: ca + key: [hbomax, showtime] + value: False + watch_region: + default: "" + conditions: + - region: ca + key: [amazon, disney, netflix] + value: "-ca" + - region: da + key: [amazon, disney, netflix] + value: "-da" + - region: de + key: [amazon, disney, netflix] + value: "-de" + - region: es + key: [amazon, disney, netflix] + value: "-es" + - region: fr + key: [amazon, disney, netflix] + value: "-fr" + - region: it + key: [amazon, disney, netflix] + value: "-it" + - region: pt-br + key: [amazon, disney, netflix] + value: "-pt-br" + - region: uk + key: [amazon, disney, netflix] + value: "-uk" overlays: Netflix: variables: {key: netflix, weight: 160} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Prime: variables: {key: amazon, weight: 150} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Disney: variables: {key: disney, weight: 140} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] HBO-Max: variables: {key: hbomax, weight: 130} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Crunchyroll: variables: {key: crunchyroll, weight: 120, allowed_libraries: show} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] YouTube: variables: {key: youtube, weight: 110} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Hulu: variables: {key: hulu, weight: 100} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Paramount: variables: {key: paramount, weight: 90} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] AppleTV: variables: {key: appletv, weight: 80} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Peacock: variables: {key: peacock, weight: 70} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] Showtime: variables: {key: showtime, weight: 60} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] + + discovery+: + variables: {key: discovery, weight: 58, allowed_libraries: show} + template: [name: standard, name: mdb_streaming] + + Crave: + variables: {key: crave, weight: 55} + template: [name: standard, name: mdb_streaming] NOW: variables: {key: now, weight: 50} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] All 4: variables: {key: all4, weight: 40} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] britbox: variables: {key: britbox, weight: 30} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] BET+: variables: {key: bet, weight: 20} - template: [name: standard, name: streaming] + template: [name: standard, name: mdb_streaming] hayu: - variables: {key: hayu, weight: 10} - template: [name: standard, name: streaming] + variables: {key: hayu, weight: 10, allowed_libraries: show} + template: [name: standard, name: mdb_streaming] \ No newline at end of file diff --git a/docs/defaults/overlays/streaming.md b/docs/defaults/overlays/streaming.md index 3bb5f505..5c89e172 100644 --- a/docs/defaults/overlays/streaming.md +++ b/docs/defaults/overlays/streaming.md @@ -10,24 +10,27 @@ Supported Overlay Level: Movie, Show ## Supported Streaming Services -| Streaming Service | Key | Weight | -|:------------------|:--------------|:-------| -| Netflix | `netflix` | `160` | -| Prime Video | `amazon` | `150` | -| Disney+ | `disney` | `140` | -| HBO Max | `hbomax` | `130` | -| Crunchyroll | `Crunchyroll` | `120` | -| YouTube | `youtube` | `110` | -| Hulu | `hulu` | `100` | -| Paramount+ | `paramount` | `90` | -| AppleTV | `appletv` | `80` | -| Peacock | `peacock` | `70` | -| Showtime | `showtime` | `60` | -| NOW | `now` | `50` | -| All 4 | `all4` | `40` | -| britbox | `britbox` | `30` | -| BET+ | `bet` | `20` | -| hayu | `hayu` | `10` | + +| Streaming Service | Key | Weight | +|:------------------|:---------------|:-------| +| Netflix | `netflix` | `160` | +| Prime Video | `amazon` | `150` | +| Disney+ | `disney` | `140` | +| HBO Max | `hbomax` | `130` | +| Crunchyroll | `Crunchyroll` | `120` | +| YouTube | `youtube` | `110` | +| Hulu | `hulu` | `100` | +| Paramount+ | `paramount` | `90` | +| AppleTV | `appletv` | `80` | +| Peacock | `peacock` | `70` | +| Showtime | `showtime` | `60` | +| discovery+ | `discovery` | `58` | +| Crave | `crave` | `55` | +| NOW | `now` | `50` | +| All 4 | `all4` | `40` | +| britbox | `britbox` | `30` | +| BET+ | `bet` | `20` | +| hayu | `hayu` | `10` | ## Config @@ -69,6 +72,17 @@ All [Shared Overlay Variables](../overlay_variables) are available with the defa 1. Each default overlay has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. +## Regional Variants + +Some logic is applied to allow for regional streaming service lists to be available to users depending on where they are, as detailed below: + +| Region | Key | Description | +|:-----------------|:---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| +| any besides `us` | `amazon`, `disney`, `netflix` | These collections will use regional variant lists to ensure the lists populate with what is available in the region specified | +| any besides `uk` | `all4`, `britbox`, `hayu`, `now` | These collections will not be created if the region is not `uk` as these streaming services are UK-focused | +| any besides `ca` | `crave` | These collections will not be created if the region is not `ca` as these streaming services are Canada-focused | +| `ca` | `hbomax`, `showtime` | These collections will not be created if the region is `ca` as these streaming services are part of the Crave streaming service in Canada | + The below is an example config.yml extract with some Template Variables added in to change how the file works. ```yaml @@ -77,6 +91,7 @@ libraries: overlay_path: - pmm: streaming template_variables: + region: ca use_peacock: false use_youtube: false weight_youtube: 5