def tvshow(self, imdb, tvdb, tvshowtitle, localtvshowtitle, aliases, year):
try:
tvshowtitle = cleantitle.getsearch(tvshowtitle)
p = urllib.urlencode({'action': 'ajaxy_sf', 'sf_value': tvshowtitle, 'search': 'false'})
r = urlparse.urljoin(self.base_link, self.search_link)
result = client.request(r, post=p, XHR=True)
diziler = json.loads(result)['diziler'][0]['all']
for i in diziler:
t = cleantitle.get(i['post_title'])
if tvshowtitle == t:
url = i['post_link']
url = url.split('/')[4]
url = url.encode('utf-8')
return url
except:
return
评论列表
文章目录