From 324fa506429a48465b828b3a8912bdda6780a01a Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 8 Nov 2024 11:33:49 +0800 Subject: [PATCH] fix --- plugins.v2/strmredirect/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins.v2/strmredirect/__init__.py b/plugins.v2/strmredirect/__init__.py index 3ef8a54..08c440b 100644 --- a/plugins.v2/strmredirect/__init__.py +++ b/plugins.v2/strmredirect/__init__.py @@ -75,6 +75,10 @@ class StrmRedirect(_PluginBase): encoded = strm_content.replace(no_encoded, "") encoded = urllib.parse.quote(encoded) strm_content = no_encoded + encoded + + # 如果不是url,不进行编码 + if not str(strm_content).startswith("http"): + strm_content = urllib.parse.unquote(strm_content) with open(str(file_path), 'w', encoding='utf-8') as file: file.write(strm_content) logger.info(