><><>>><>"
+ sort_title: "!<><><>>><>"
sort_title_<>: <>
radarr_add_missing_<>: <>
radarr_folder_<>: <>
diff --git a/defaults/show/franchise.yml b/defaults/show/franchise.yml
index 8b194184..5b2a11d5 100644
--- a/defaults/show/franchise.yml
+++ b/defaults/show/franchise.yml
@@ -16,8 +16,7 @@ templates:
name_mapping_<>: <>
pre: "_"
order_<>: ""
- sort: <>
- sort_title: "!<><><>>><>"
+ sort_title: "!<><><>>><>"
sort_title_<>: <>
sonarr_add_missing_<>: <>
sonarr_folder_<>: <>
diff --git a/defaults/templates.yml b/defaults/templates.yml
index 08d31e31..f73c4a10 100644
--- a/defaults/templates.yml
+++ b/defaults/templates.yml
@@ -29,7 +29,7 @@ templates:
value: false
run_definition: <>
collection_mode: <>
- sort_title: "!<>_!<>"
+ sort_title: "!<>_!<>"
tmdb_movie: <>
tvdb_show: <>
imdb_id: <>
@@ -43,8 +43,7 @@ templates:
shared:
default:
collection_section: "00"
- sort: <>
- key: <>
+ key: <>
pre: "_"
order: ""
order_<>: <>
@@ -95,7 +94,7 @@ templates:
visible_shared: <>>>
item_radarr_tag: <>>>
item_sonarr_tag: <>>>
- sort_title: "!<><><>>><>"
+ sort_title: "!<><><>>><>"
url_poster: <>>>
minimum_items: <>>>
@@ -178,7 +177,7 @@ templates:
arr:
default:
- key: <>
+ key: <>
radarr_add_missing_<>: <>
sonarr_add_missing_<>: <>
radarr_folder_<>: <>
@@ -225,12 +224,11 @@ templates:
other_collection:
default:
collection_section: "00"
- sort: <>
pre: "_~"
optional:
- use_other
run_definition: <>
- sort_title: "!<><><>"
+ sort_title: "!<><><>"
use_year_collections:
optional:
diff --git a/docs/index.md b/docs/index.md
index 625ec4e6..ef7278ca 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -9,6 +9,7 @@
[![Discord](https://img.shields.io/discord/822460010649878528?color=%2300bc8c&label=Discord&style=plastic)](https://discord.gg/NfH6mGFuAB)
[![Reddit](https://img.shields.io/reddit/subreddit-subscribers/PlexMetaManager?color=%2300bc8c&label=r%2FPlexMetaManager&style=plastic)](https://www.reddit.com/r/PlexMetaManager/)
[![Wiki](https://img.shields.io/readthedocs/plex-meta-manager?color=%2300bc8c&style=plastic)](https://metamanager.wiki)
+[![Translations](https://img.shields.io/weblate/progress/plex-meta-manager?color=00bc8c&server=https%3A%2F%2Ftranslations.metamanager.wiki&style=plastic)](https://translations.metamanager.wiki/engage/plex-meta-manager/)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/meisnate12?color=%238a2be2&style=plastic)](https://github.com/sponsors/meisnate12)
[![Sponsor or Donate](https://img.shields.io/badge/-Sponsor%2FDonate-blueviolet?style=plastic)](https://github.com/sponsors/meisnate12)
[![Feature Requests](https://img.shields.io/badge/Feature%20Requests-blueviolet?style=plastic)](https://features.metamanager.wiki/)
@@ -113,7 +114,7 @@ If switching to the develop branch, it is recommended to also use the [develop b
-
+
Nightly Branch - Click to Expand
diff --git a/modules/builder.py b/modules/builder.py
index 363ed31b..e586d054 100644
--- a/modules/builder.py
+++ b/modules/builder.py
@@ -2847,9 +2847,18 @@ class CollectionBuilder:
self.obj.editSummary(summary[1])
batch_display += f"\nSummary ({summary[0]}) | {summary[1]:<25}"
- if "sort_title" in self.details and str(self.details["sort_title"]) != str(self.obj.titleSort):
- self.obj.editSortTitle(self.details["sort_title"])
- batch_display += f"\nSort Title | {self.details['sort_title']}"
+ if "sort_title" in self.details:
+ new_sort_title = str(self.details["sort_title"])
+ if "<>" in new_sort_title:
+ title = self.name
+ for op in ["The ", "A ", "An "]:
+ if title.startswith(f"{op} "):
+ title = f"{new_sort_title[len(op):].strip()}, {op.strip()}"
+ break
+ new_sort_title.replace("<>", title)
+ if new_sort_title != str(self.obj.titleSort):
+ self.obj.editSortTitle(self.details["sort_title"])
+ batch_display += f"\nSort Title | {self.details['sort_title']}"
if "content_rating" in self.details and str(self.details["content_rating"]) != str(self.obj.contentRating):
self.obj.editContentRating(self.details["content_rating"])