MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / searchContent

Method searchContent

plugin/py_gimytv.py:165–186  ·  view source on GitHub ↗
(self,key,quick)

Source from the content-addressed store, hash-verified

163 }
164 return result
165 def searchContent(self,key,quick):
166 url = "https://gimytv.co/search/-------------.html?wd={0}".format(key)
167 rsp = self.fetch(url,headers=self.header)
168 root = self.html(rsp.text)
169 aList = root.xpath("//ul[contains(@class,'myui-vodlist__media')]/li")
170 videos = []
171 for a in aList:
172 name = a.xpath(".//a/@title")[0]
173 pic = a.xpath(".//a/@data-original")[0]
174 mark = a.xpath(".//span[contains(@class, 'pic-text')]/text()")[0]
175 sid = a.xpath(".//a/@href")[0]
176 sid = self.regStr(sid,"/(\\S+).html")
177 videos.append({
178 "vod_id":sid,
179 "vod_name":name,
180 "vod_pic":pic,
181 "vod_remarks":mark
182 })
183 result = {
184 'list':videos
185 }
186 return result
187 def playerContent(self,flag,id,vipFlags):
188 url = 'https://gimytv.co/{0}.html'.format(id)
189 rsp = self.fetch(url,headers=self.header)

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.95
htmlMethod · 0.95
regStrMethod · 0.95

Tested by

no test coverage detected