From 7c9eecf5c06b4e7a6f7d8cba81909850cd14b302 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Wed, 21 Sep 2022 19:01:54 +0800 Subject: [PATCH] md --- js/version.txt | 2 +- readme.md | 1 + utils/parser.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/version.txt b/js/version.txt index 240bba9..5cdb444 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.7.0 \ No newline at end of file +3.7.1 \ No newline at end of file diff --git a/readme.md b/readme.md index 3ebae57..449ba68 100644 --- a/readme.md +++ b/readme.md @@ -49,6 +49,7 @@ ###### 2022/09/21 - [X] 1.未来功能增加显示和隐藏多选规则的实际逻辑,增加顺序字段等待有缘人 - [X] 2.版本升级至3.7.0 +- [X] 3.版本升级至3.7.1,修复/js目录的内置源会被缓存的问题 ###### 2022/09/19 - [X] 1.增加20多个缓存源,需要在custom.conf文件自定义添加 - [X] 2.修复缓存js播放免嗅问题 diff --git a/utils/parser.py b/utils/parser.py index 6c58916..424614a 100644 --- a/utils/parser.py +++ b/utils/parser.py @@ -59,8 +59,8 @@ def runJs(jsPath, before='', after='', ctx=None): return None,'' js_name = jsPath.split('/')[-1] cache_path = os.path.join(base_path, f'cache/{js_name}') - if not os.path.exists(cache_path) and os.path.exists(js_path): - shutil.copy(js_path,cache_path) + if not str(jsPath).startswith('js/') and not os.path.exists(cache_path) and os.path.exists(js_path): + shutil.copy(js_path,cache_path) # 本地txt目录的复制过去凑数,实际不使用 print(js_path) with open(js_path, 'r', encoding='UTF-8') as fp: js_code = fp.read() -- GitLab