[36] basedon to based

pull/1294/head
meisnate12 2 years ago
parent 41aaa48b81
commit 68b41f3d1e

@ -1 +1 @@
1.18.3-develop35
1.18.3-develop36

@ -0,0 +1,65 @@
##############################################################################
# "Based On..." Collections #
# Created by Yozora, Bullmoose20, & Sohjiro #
# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://metamanager.wiki/en/latest/defaults/both/based.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
collection_section: "14"
translations:
pmm: translations
collections:
Based On... Collections:
template:
- name: separator
separator: based
- name: translation
key_name: Based On...
translation_key: separator
dynamic_collections:
Based:
type: custom
data:
books: Book
comics: Comic
true_story: True Story
video_games: Video Game
title_format: Based on a <<key_name>>
template:
- filter
- translation
- shared
addons:
books:
- based-on-novel
- based-on-novella
- based-on-novels
- based-on-book-series
- based-on-novelette
- based-on-book
- based-on-novel-or-booka
comics:
- based-on-comic-book
- based-on-manga
- based-on-comic
true_story:
- based-on-real-events
- based-on-real-story
- based-on-true-story
video_games:
- based-on-video-game
- based-on-a-video-game
- video-game-adaption
template_variables:
filter_term:
default: imdb_keyword
image:
default: based/<<key_name_encoded>>
translation_key:
default: based

@ -1,45 +0,0 @@
##############################################################################
# "Based On..." Collections #
# Created by Yozora, Bullmoose20, & Sohjiro #
# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://metamanager.wiki/en/latest/defaults/both/basedon.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
collection_section: "14"
translations:
pmm: translations
collections:
Based On... Collections:
template:
- name: separator
separator: basedon
- name: translation
key_name: Based On...
translation_key: separator
dynamic_collections:
Basedon:
type: custom
data:
books: Book
comics: Comic
true-story: True Story
video-games: Video Game
title_format: Based on a <<key_name>>
template:
- mdb_smart
- translation
- shared
- arr
template_variables:
mdblist_list:
default: https://mdblist.com/lists/plexmetamanager/based-on-<<key>>-<<library_type>>s
image:
default: basedon/<<key_name_encoded>>
translation_key:
default: basedon

@ -237,7 +237,7 @@ html_theme_options = {
("_menu", "Movie", "defaults/defaults", "#general-collections", [
("Actors", "defaults/both/actor"),
("Audio Languages", "defaults/both/audio_language"),
("Based On...", "defaults/both/basedon"),
("Based On...", "defaults/both/based"),
("Collectionless", "defaults/both/collectionless"),
("Common Sense Media Content Ratings", "defaults/both/content_rating_cs"),
("MyAnimeList Content Ratings", "defaults/both/content_rating_mal"),
@ -262,7 +262,7 @@ html_theme_options = {
("_menu", "Show", "defaults/defaults", "#general-collections", [
("Actors", "defaults/both/actor"),
("Audio Languages", "defaults/both/audio_language"),
("Based On...", "defaults/both/basedon"),
("Based On...", "defaults/both/based"),
("Collectionless", "defaults/both/collectionless"),
("Common Sense Media Content Ratings", "defaults/both/content_rating_cs"),
("MyAnimeList Content Ratings", "defaults/both/content_rating_mal"),

@ -1,8 +1,8 @@
# Based On... Collections
The `basedon` Default Metadata File is used to create collections with items that are based on or inspired by various media outlets (such as Books or Video Games).
The `based` Default Metadata File is used to create collections with items that are based on or inspired by various media outlets (such as Books or Video Games).
![](../images/basedon.png)
![](../images/based.png)
## Requirements & Recommendations
@ -15,8 +15,8 @@ Supported Library Types: Movie, Show
| `Based On... Collections` | `separator` | [Separator Collection](../separators) to denote the Section of Collections. |
| `Based on a Book` | `books` | Collection of Movies/Shows based on or inspired by books |
| `Based on a Comic` | `comics` | Collection of Movies/Shows based on or inspired by comics |
| `Based on a True Story` | `true-story` | Collection of Movies/Shows based on or inspired by true stories |
| `Based on a Video Game` | `video-games` | Collection of Movies/Shows based on or inspired by video games |
| `Based on a True Story` | `true_story` | Collection of Movies/Shows based on or inspired by true stories |
| `Based on a Video Game` | `video_games` | Collection of Movies/Shows based on or inspired by video games |
## Config
@ -26,10 +26,10 @@ The below YAML in your config.yml will create the collections:
libraries:
Movies:
metadata_path:
- pmm: basedon
- pmm: based
TV Shows:
metadata_path:
- pmm: basedon
- pmm: based
```
## Template Variables
@ -62,13 +62,13 @@ The below is an example config.yml extract with some Template Variables added in
libraries:
Movies:
metadata_path:
- pmm: basedon
- pmm: based
template_variables:
use_separator: false
sep_style: purple
use_comics: false
order_true-story: 01
visible_library_video-games: true
visible_home_video-games: true
visible_shared_video-games: true
order_true_story: 01
visible_library_video_games: true
visible_home_video_games: true
visible_shared_video_games: true
```

@ -45,7 +45,7 @@ These collections are applied by calling the below paths into the `metadata_path
|:------------------------------------------------------------------------------------|:---------------------|:-------------------------------------------------------|:-----------------:|:----------------:|
| [Actor](both/actor) | `actor` | Chris Hemsworth, Margot Robbie | &#9989; | &#9989; |
| [Audio Language](both/audio_language) | `audio_language` | French Audio, Korean Audio | &#9989; | &#9989; |
| [Based On...](both/basedon) | `basedon` | Based on a Book, Based on a True Story | &#9989; | &#9989; |
| [Based On...](both/based) | `based` | Based on a Book, Based on a True Story | &#9989; | &#9989; |
| [Collectionless](both/collectionless) | `collectionless` | Collectionless | &#9989; | &#9989; |
| [Common Sense Content Rating](both/content_rating_cs) | `content_rating_cs` | 1, 2, 3, 4, 5, 6, 15, 16, 17, 18 | &#9989; | &#9989; |
| [MyAnimeList Content Rating](both/content_rating_mal) | `content_rating_mal` | G, PG, PG-13, R, R+, Rx | &#9989; | &#9989; |

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Loading…
Cancel
Save