diff --git a/js/version.txt b/js/version.txt index 240bba90696ac3341168f55541b1e9e26c1c88f0..5cdb444f3d4179b46afcedfe657d880dc111573a 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 3ebae578894d1de7e006e351262e2b1e89a1ed6a..449ba686540b4e29834b229ece212bb86fb9674d 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 6c58916846de71c492adc7bf65bd3f6a977bf136..424614ac2e17e10161e5e5fe115973b680e56c40 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()