Ejemplo n.º 1
0
 def get_episode_urls(self, url):
     html = self.net.http_GET(url).content
     r = re.search(r",vcode: '(.+?)'", url)
     if r:  #youku
         list_id = IyoukuResolver.get_list_id(url)
         result = IyoukuResolver.get_episode(list_id)
         return  result
     else:
         r = re.search(r",iid: (\d+)", url) #iid
         return self.resolve(r.group(1))
     return result           
Ejemplo n.º 2
0
 def get_media_url(self, host, media_id):
     url = media_id
     html = self.net.http_GET(url).content
     res = urlresolvercn.get_res_setting()
     r = re.search(r",vcode: '(.+?)'", url)
     if r:  #youku
         return  IyoukuResolver.resolve(r.group(1),res)
     else:
         r = re.search(r",iid: (\d+)", url) #iid
         return self.resolve(r.group(1),res)