From 3ad81c13f934d21a08cc1954a9e5902e489a6fbd Mon Sep 17 00:00:00 2001 From: "Wang.Luo" <1593775941@qq.com> Date: Mon, 9 Jun 2025 02:04:15 +0800 Subject: [PATCH] =?UTF-8?q?"build(adult):=20Phb=E6=96=B0=E5=A2=9E=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E5=88=86=E7=B1=BB=E5=85=A5=E5=8F=A3=E5=8F=8A=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E6=95=B0=E6=8D=AE=E8=A7=A3=E6=9E=90=E9=80=BB=E8=BE=91?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PyramidStore/plugin/adult/Phb.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/PyramidStore/plugin/adult/Phb.py b/PyramidStore/plugin/adult/Phb.py index aa5e938..d31e7fe 100644 --- a/PyramidStore/plugin/adult/Phb.py +++ b/PyramidStore/plugin/adult/Phb.py @@ -85,6 +85,7 @@ class Spider(Spider): def homeContent(self, filter): result = {} cateManual = { + "推荐": "/recommended", "视频": "/video", "片单": "/playlists", "频道": "/channels", @@ -103,9 +104,10 @@ class Spider(Spider): return result def homeVideoContent(self): - data = self.getpq('/recommended') - vhtml = data("#recommendedListings .pcVideoListItem .phimage") - return {'list': self.getlist(vhtml)} + # data = self.getpq('/recommended') + # vhtml = data("#recommendedListings .pcVideoListItem .phimage") + # return {'list': self.getlist(vhtml)} + pass def categoryContent(self, tid, pg, filter, extend): vdata = [] @@ -119,6 +121,9 @@ class Spider(Spider): tid = tid.split('_this_video')[0] data = self.getpq(f'{tid}{pagestr}page={pg}') vdata = self.getlist(data('#videoCategory .pcVideoListItem')) + elif tid == '/recommended': + data = self.getpq(f'{tid}?page={pg}') + vdata = self.getlist(data('#recommendedListings .pcVideoListItem .phimage')) elif tid == '/playlists': data = self.getpq(f'{tid}?page={pg}') vhtml = data('#playListSection li')