From 61524c4b924ebaec32403048d33c6871a3b347c1 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 15 Jun 2020 16:25:55 -0400 Subject: [PATCH] adding support for Plex's allow/deny restrictions --- utility/plex_api_share.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utility/plex_api_share.py b/utility/plex_api_share.py index f09a09e..f040b3c 100644 --- a/utility/plex_api_share.py +++ b/utility/plex_api_share.py @@ -167,7 +167,8 @@ def get_ratings_lst(section_id): def filter_clean(filter_type): clean = '' try: - clean = dict(item.split("=") for item in filter_type.split("|")) + filter_type = filter_type.replace('|', '&') + clean = dict(item.split("=") for item in filter_type.split("&")) for k, v in clean.items(): labels = v.replace('%20', ' ') labels = labels.split('%2C')