def tvshow(self, imdb, tvdb, tvshowtitle, localtvshowtitle, aliases, year):
'''
Takes TV show information, encodes it as name value pairs, and returns
a string of url params
Keyword arguments:
imdb -- string - imdb tv show id
tvdb -- string - tvdb tv show id
tvshowtitle -- string - name of the tv show
localtvshowtitle -- string - regional title of the tv show
year -- string - year the tv show was released
Returns:
url -- string - url encoded params
'''
try:
data = {
'imdb': imdb,
'tvdb': tvdb,
'tvshowtitle': tvshowtitle,
'year': year
}
url = urllib.urlencode(data)
return url
except Exception:
return
评论列表
文章目录