From ab7e155af9c940882d7a37b065851883519a774b Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 16 Sep 2022 14:54:22 -0400 Subject: [PATCH] add collection_order_key to chart collections --- PMM/chart/anilist.yml | 6 ++---- PMM/chart/basic.yml | 4 ++-- PMM/chart/imdb.yml | 6 ++---- PMM/chart/myanimelist.yml | 7 ++----- PMM/chart/other.yml | 6 ++---- PMM/chart/tautulli.yml | 4 ++-- PMM/chart/tmdb.yml | 7 ++----- PMM/chart/trakt.yml | 3 ++- PMM/playlist.yml | 20 ++++++++++++-------- PMM/templates.yml | 34 ++++++++++++++++++++++++++++++++++ 10 files changed, 62 insertions(+), 35 deletions(-) diff --git a/PMM/chart/anilist.yml b/PMM/chart/anilist.yml index 4fcb6e9..278fe80 100644 --- a/PMM/chart/anilist.yml +++ b/PMM/chart/anilist.yml @@ -29,6 +29,8 @@ # use_key: true # # # Determines collection order in it's section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -81,21 +83,18 @@ collections: AniList Popular: template: - name: popular - - name: customsync - name: chart_shared key: popular AniList Top Rated: template: - name: top - - name: customsync - name: chart_shared key: top AniList Trending: template: - name: trending - - name: customsync - name: chart_shared key: trending @@ -106,6 +105,5 @@ collections: sort_by: popular summary: A collection of Anime from the Current Season according to AniList. template: - - name: customsync - name: chart_shared key: season diff --git a/PMM/chart/basic.yml b/PMM/chart/basic.yml index ca70839..b653684 100644 --- a/PMM/chart/basic.yml +++ b/PMM/chart/basic.yml @@ -77,12 +77,12 @@ collections: Newly Released: template: - name: released - - name: chart_shared + - name: smart_chart_shared key: released New Episodes: template: - name: episodes - - name: chart_shared + - name: smart_chart_shared key: episodes check_library: show diff --git a/PMM/chart/imdb.yml b/PMM/chart/imdb.yml index f8d95b5..aec4b14 100644 --- a/PMM/chart/imdb.yml +++ b/PMM/chart/imdb.yml @@ -28,6 +28,8 @@ # use_key: true # # # Determines collection order in its section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -57,8 +59,6 @@ templates: imdb: imdb_chart: <>_<>s - collection_order: custom - sync_mode: sync collections: @@ -78,8 +78,6 @@ collections: IMDb Lowest Rated: imdb_chart: lowest_rated - collection_order: custom - sync_mode: sync template: - name: chart_shared key: lowest diff --git a/PMM/chart/myanimelist.yml b/PMM/chart/myanimelist.yml index 51d8017..872522d 100644 --- a/PMM/chart/myanimelist.yml +++ b/PMM/chart/myanimelist.yml @@ -30,6 +30,8 @@ # use_key: true # # # Determines collection order in it's section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -88,28 +90,24 @@ collections: MyAnimeList Popular: template: - name: popular - - name: customsync - name: chart_shared key: popular MyAnimeList Favorited: template: - name: favorited - - name: customsync - name: chart_shared key: favorited MyAnimeList Top Rated: template: - name: top - - name: customsync - name: chart_shared key: top MyAnimeList Top Airing: template: - name: airing - - name: customsync - name: chart_shared key: airing @@ -119,6 +117,5 @@ collections: sort_by: score summary: A collection of Anime from the Current Season according to MyAnimeList. template: - - name: customsync - name: chart_shared key: season diff --git a/PMM/chart/other.yml b/PMM/chart/other.yml index 74361b6..2d7bc70 100644 --- a/PMM/chart/other.yml +++ b/PMM/chart/other.yml @@ -29,6 +29,8 @@ # use_key: true # # # Determines collection order in its section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -64,14 +66,12 @@ collections: summary: A collection of Popular Anime on AniDB anidb_popular: 30 template: - - name: customsync - name: chart_shared key: anidb Common Sense Selection: template: - name: css - - name: customsync - name: chart_shared key: commonsense @@ -79,7 +79,6 @@ collections: summary: A collection of StevenLu's Most Popular Movies stevenlu_popular: true template: - - name: customsync - name: chart_shared key: stevenlu check_library: movie @@ -88,7 +87,6 @@ collections: mdblist_list: https://mdblist.com/lists/hdlists/top-ten-pirated-movies-of-the-week-torrent-freak-com/ summary: TorrentFreak.com's Weekly Top Ten Pirated Movies template: - - name: customsync - name: chart_shared key: pirated check_library: movie diff --git a/PMM/chart/tautulli.yml b/PMM/chart/tautulli.yml index 9180c16..2d03a84 100644 --- a/PMM/chart/tautulli.yml +++ b/PMM/chart/tautulli.yml @@ -30,6 +30,8 @@ # use_key: true # # # Determines collection order in its section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -74,12 +76,10 @@ collections: Plex Popular: template: - name: tautulli_popular - - name: customsync - name: chart_shared key: popular Plex Watched: template: - name: tautulli_watched - - name: customsync - name: chart_shared key: watched diff --git a/PMM/chart/tmdb.yml b/PMM/chart/tmdb.yml index 400470a..6792d79 100644 --- a/PMM/chart/tmdb.yml +++ b/PMM/chart/tmdb.yml @@ -30,6 +30,8 @@ # use_key: true # # # Determines collection order in its section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -94,7 +96,6 @@ collections: TMDb Airing Today: template: - name: airing - - name: customsync - name: chart_shared key: airing check_library: show @@ -102,7 +103,6 @@ collections: TMDb On The Air: template: - name: air - - name: customsync - name: chart_shared key: air check_library: show @@ -110,20 +110,17 @@ collections: TMDb Popular: template: - name: popular - - name: customsync - name: chart_shared key: popular TMDb Top Rated: template: - name: top - - name: customsync - name: chart_shared key: top TMDb Trending: template: - name: trending - - name: customsync - name: chart_shared key: trending \ No newline at end of file diff --git a/PMM/chart/trakt.yml b/PMM/chart/trakt.yml index a10b2c8..1117901 100644 --- a/PMM/chart/trakt.yml +++ b/PMM/chart/trakt.yml @@ -33,6 +33,8 @@ # use_key: true # # # Determines collection order in its section # # order_key: # +# # Determines collection order of the collection # +# collection_order_key: custom # # # Set visible_library for the collection # # visible_library_key: # # # Set visible_home for the collection # @@ -81,5 +83,4 @@ dynamic_collections: title_format: Trakt <> template: - trakt - - customsync - chart_shared diff --git a/PMM/playlist.yml b/PMM/playlist.yml index 3142af3..561b2bf 100644 --- a/PMM/playlist.yml +++ b/PMM/playlist.yml @@ -34,6 +34,8 @@ # # # # Turn the playlist on/off # # use_key: true # +# # Change the lists URL # +# url_key: https://trakt.tv/users/... # # # Radarr Add Missing # # radarr_add_missing_key: true # # # Sonarr Add Missing # @@ -58,6 +60,7 @@ templates: sonarr_tag_<>: <> item_radarr_tag_<>: <> item_sonarr_tag_<>: <> + url_<>: <> optional: - use_<> - radarr_add_missing @@ -74,6 +77,7 @@ templates: sonarr_tag: <>>> item_radarr_tag: <>>> item_sonarr_tag: <>>> + trakt_list: <>>> cache_builders: 1 sync_to_users: all sync_mode: sync @@ -85,54 +89,54 @@ playlists: template: - name: playlist key: arrow - trakt_list: https://trakt.tv/users/donxy/lists/arrowverse + trakt_url: https://trakt.tv/users/donxy/lists/arrowverse summary: The Arrowverse is an American superhero media franchise and a shared universe that is centered on various interconnected television series based on DC Comics superhero characters, primarily airing on The CW as well as web series on CW Seed. Marvel Cinematic Universe (Timeline Order): template: - name: playlist key: mcu - trakt_list: https://trakt.tv/users/donxy/lists/marvel-cinematic-universe + trakt_url: https://trakt.tv/users/donxy/lists/marvel-cinematic-universe summary: The Marvel Cinematic Universe (MCU) is a collection of movies and television series that tell a singular narrative related to Marvel characters, settings and stories. The MCU is a product from Disney and Marvel that brings us heroes from Black Panther and Doctor Strange to Spider-Man and Iron Man. DC Animated Universe (Timeline Order): template: - name: playlist key: dcau - trakt_list: https://trakt.tv/users/donxy/lists/dc-animated-series-universe + trakt_url: https://trakt.tv/users/donxy/lists/dc-animated-series-universe summary: "The DC Animated Universe (DCAU) is a shared universe consisting primarily of superhero-based animated television series, produced by Warner Bros. Animation and based on characters that appear in American comic books published by DC Comics. The first TV series set in the DCAU was Batman: The Animated Series, which premiered in 1992; the last TV series was Justice League Unlimited, which ended its run in 2006." Pokémon (Timeline Order): template: - name: playlist key: pokemon - trakt_list: https://trakt.tv/users/munch54/lists/pokemon-watching-order + trakt_url: https://trakt.tv/users/munch54/lists/pokemon-watching-order summary: Ash Ketchum, his yellow pet Pikachu, and his human friends explore a world of powerful creatures. Ten-year-old Ash aspires to be the greatest Pokémon (pocket monster) trainer in the world. To do this, he enlists the help of many friends, and his own Pokémon, Pikachu. Star Trek (Timeline Order): template: - name: playlist key: startrek - trakt_list: https://trakt.tv/users/pedrohcramos/lists/star-trek-timeline + trakt_url: https://trakt.tv/users/pedrohcramos/lists/star-trek-timeline summary: Few film franchises have lasted as long as Star Trek. Through five decades and three different crews, the Star Trek films have saved more than a few worlds (and the whales), traveling through time more than once to do it. With them being set in so many different time periods, their actual chronological order might get a little confusing. No need to fret as this is the proper order… in linear time, anyway. On a quantum level is a whole other thing. Star Wars (Timeline Order): template: - name: playlist key: starwars - trakt_list: https://trakt.tv/users/ruben_vw_/lists/star-wars-canon-timeline + trakt_url: https://trakt.tv/users/ruben_vw_/lists/star-wars-canon-timeline summary: A long time ago in a galaxy far, far away, a farm boy on a desert planet dreamed of joining a rebellion and saving a princess from a dark lord, and thus, one of the most successful cinematic sagas of all time was born. What began with one space opera in 1977 quickly grew into a media empire that included toys, comic books, video games, TV series, and memorabilia in every possible form. Today, more than 40 years after it first arrived, Star Wars remains a global pop culture phenomenon, and the story still isn't over.  Star Wars The Clone Wars (Timeline Order): template: - name: playlist key: clonewars - trakt_list: https://trakt.tv/users/tomfin46/lists/star-wars-the-clone-wars-chronological-episode-order + trakt_url: https://trakt.tv/users/tomfin46/lists/star-wars-the-clone-wars-chronological-episode-order summary: As more star systems get swept into the Clone Wars, the valiant Jedi knights struggle to maintain order. Anakin Skywalker and his Padawan learner Ahsoka Tano embark on a mission that brings them face-to-face with Jabba the Hutt. Plotting against them is evil Count Dooku and his agent, Asajj Ventress, who would ensure that the Jedis fail. Meanwhile, Yoda and Obi-Wan Kenobi lead the clone army against the forces of the Dark Side. X-Men (Timeline Order): template: - name: playlist key: xmen - trakt_list: https://trakt.tv/users/heyitsbea/lists/x-men + trakt_url: https://trakt.tv/users/heyitsbea/lists/x-men summary: The X-Men are a fictional team of superheroes appearing in American comic books published by Marvel Comics, first appearing in The X-Men Issue 1. Although initially cancelled in 1970, following its 1975 revival and subsequent direction under writer Chris Claremont, it became one of the most recognizable and successful franchises of Marvel Comics. diff --git a/PMM/templates.yml b/PMM/templates.yml index 4b784b7..eb4b4e2 100644 --- a/PMM/templates.yml +++ b/PMM/templates.yml @@ -50,9 +50,41 @@ templates: collection_mode: <> sort_title: "!<><
><>>><>"
 
+  smart_chart_shared:
+    default:
+      collection_section: "00"
+      key: <>
+      sort: <>
+      pre: "_"
+      order_<>: ""
+      item_radarr_tag_<>: <>
+      item_sonarr_tag_<>: <>
+    optional:
+      - use_<>
+      - visible_library_<>
+      - visible_home_<>
+      - visible_shared_<>
+      - collection_mode
+      - item_radarr_tag
+      - item_sonarr_tag
+      - library_types
+      - check_library
+    allowed_library_types:
+      - <>>>
+      - <>
+    visible_library: <>>>
+    visible_home: <>>>
+    visible_shared: <>>>
+    item_radarr_tag: <>>>
+    item_sonarr_tag: <>>>
+    collection_mode: <>
+    sort_title: "!<><
><>>><>"
+    url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/chart/<>.jpg
+
   chart_shared:
     default:
       collection_section: "00"
+      collection_order_<>: custom
       key: <>
       sort: <>
       pre: "_"
@@ -80,6 +112,8 @@ templates:
     allowed_library_types:
       - <>>>
       - <>
+    collection_order: <>>>
+    sync_mode: sync
     visible_library: <>>>
     visible_home: <>>>
     visible_shared: <>>>