| 37 | result['filters'] = self.config['filter'] |
| 38 | return result |
| 39 | def homeVideoContent(self): |
| 40 | rsp = self.fetch("https://www.voflix.com/",headers=self.header) |
| 41 | root = self.html(rsp.text) |
| 42 | vodList = root.xpath("//div[@class='module']/div[contains(@class,'tab-list')]//a") |
| 43 | videos = [] |
| 44 | for vod in vodList: |
| 45 | name = vod.xpath("./@title")[0] |
| 46 | pic = vod.xpath(".//img/@data-original")[0] |
| 47 | mark = vod.xpath(".//div[@class='module-item-note']/text()")[0] |
| 48 | sid = vod.xpath("./@href")[0] |
| 49 | sid = self.regStr(sid,"/detail/(\\S+).html") |
| 50 | videos.append({ |
| 51 | "vod_id":sid, |
| 52 | "vod_name":name, |
| 53 | "vod_pic":pic, |
| 54 | "vod_remarks":mark |
| 55 | }) |
| 56 | result = { |
| 57 | 'list':videos |
| 58 | } |
| 59 | return result |
| 60 | def categoryContent(self,tid,pg,filter,extend): |
| 61 | result = {} |
| 62 | if 'id' not in extend.keys(): |