diff --git a/models/cms.py b/models/cms.py index 1851632904cdcec563c4a6784988cc0df0e8a785..49ec190c814013862b7ae97eff435826a6a4ec73 100644 --- a/models/cms.py +++ b/models/cms.py @@ -54,24 +54,8 @@ class CMS: return result def homeVideoContent(self): - rsp = self.fetch("https://www.genmov.com/", headers=self.header) - root = self.html(rsp.text) - aList = root.xpath("//div[@class='module module-wrapper']//div[@class='module-item']") - videos = [] - for a in aList: - name = a.xpath(".//div[@class='module-item-pic']/a/@title")[0] - pic = a.xpath(".//div[@class='module-item-pic']/img/@data-src")[0] - mark = a.xpath("./div[@class='module-item-text']/text()")[0] - sid = a.xpath(".//div[@class='module-item-pic']/a/@href")[0] - sid = self.regStr(sid, "/video/(\\S+).html") - videos.append({ - "vod_id": sid, - "vod_name": name, - "vod_pic": pic, - "vod_remarks": mark - }) result = { - 'list': videos + 'list': [] } return result diff --git a/pycms.json b/pycms.json index 1129b5e119be99ea1e3eaf7c0550522ba9e1c5a2..408b38515f2cfd09da95debc829bf0113e6cb491 100644 --- a/pycms.json +++ b/pycms.json @@ -1,9 +1,11 @@ -{ +{"sites":[{ "key":"dr_yanaifei", "name":"鸭奈飞", - "type":4, + "type":1, "api":"http://192.168.10.99:9000/vod?rule=鸭奈飞", "searchable": 1, "quickSearch": 1, "filterable": 1 +} +] } \ No newline at end of file