From 6f5b7110ee5f4065633e2c01ea76f4570e506489 Mon Sep 17 00:00:00 2001 From: Yuukiy <76897913+Yuukiy@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:34:16 +0800 Subject: [PATCH] =?UTF-8?q?javbus:=20=E8=A7=A3=E5=86=B3=E7=88=AC=E8=99=AB?= =?UTF-8?q?=E8=A2=AB=E8=AF=86=E5=88=AB=E6=97=B6=E8=BF=94=E5=9B=9E404?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/javbus.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/javbus.py b/web/javbus.py index 3d64ac4df..160138a50 100644 --- a/web/javbus.py +++ b/web/javbus.py @@ -28,9 +28,6 @@ def parse_data(movie: MovieInfo): """ url = f'{base_url}/{movie.dvdid}' resp = request_get(url, delay_raise=True) - if resp.status_code == 404: - raise MovieNotFoundError(__name__, movie.dvdid) - resp.raise_for_status() # 疑似JavBus检测到类似爬虫的行为时会要求登录,不过发现目前不需要登录也可以从重定向前的网页中提取信息 if resp.history and resp.history[0].status_code == 302: html = resp2html(resp.history[0])