From 86d5c7501a7708f2a686c9e538d639e807b97a62 Mon Sep 17 00:00:00 2001 From: yoshiko2 Date: Sat, 26 Nov 2022 05:37:38 +0800 Subject: [PATCH] Fix: Remove videoprops modules caused by not stable --- core.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/core.py b/core.py index c13c0c4..811db0d 100644 --- a/core.py +++ b/core.py @@ -11,7 +11,7 @@ from PIL import Image from io import BytesIO from pathlib import Path from datetime import datetime -from lxml import etree +# from videoprops import get_video_properties from ADC_function import * # from WebCrawler import get_data_from_json @@ -724,12 +724,12 @@ def core_main_no_net_op(movie_path, number): hack = 1 hack_word = "-hack" - try: - props = get_video_properties(movie_path) # 判断是否为4K视频 - if props['width'] >= 4096 or props['height'] >= 2160: - _4k = '1' - except: - pass + # try: + # props = get_video_properties(movie_path) # 判断是否为4K视频 + # if props['width'] >= 4096 or props['height'] >= 2160: + # _4k = '1' + # except: + # pass prestr = f"{number}{leak_word}{c_word}{hack_word}" @@ -852,12 +852,12 @@ def core_main(movie_path, number_th, oCC, specified_source=None, specified_url=N if '4K' in tag: tag.remove('4K') # 从tag中移除'4K' - try: - props = get_video_properties(movie_path) # 判断是否为4K视频 - if props['width'] >= 4096 or props['height'] >= 2160: - _4k = '1' - except: - pass + # try: + # props = get_video_properties(movie_path) # 判断是否为4K视频 + # if props['width'] >= 4096 or props['height'] >= 2160: + # _4k = '1' + # except: + # pass # 调试模式检测 if conf.debug():