From 3bf3e8a918516576a685705bfaf86ae1aa3bf622 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 28 Dec 2021 16:23:26 -0500 Subject: [PATCH] fix tmdb_collections --- plex_meta_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plex_meta_manager.py b/plex_meta_manager.py index 6ada4fc8..7f8c0b4d 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -570,7 +570,7 @@ def library_operations(config, library): template[k] = v[int(_i)] for suffix in library.tmdb_collections["remove_suffix"]: if _n.endswith(suffix): - _n = _n[:-len(_n)] + _n = _n[:-len(suffix)] new_collections[_n.strip()] = {"template": template} metadata = MetadataFile(config, library, "Data", { "collections": new_collections,