1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

tv4play: dont urlencode already urlencoded shows names.

this fixes #128
This commit is contained in:
Johan Andersson 2014-09-06 21:50:50 +02:00
parent 96aa0b8119
commit 2ea3a26ffb

View File

@ -107,7 +107,9 @@ class Tv4play(Service, OpenGraphThumbMixin):
def find_all_episodes(self, options): def find_all_episodes(self, options):
parse = urlparse(self.url) parse = urlparse(self.url)
show = quote_plus(parse.path[parse.path.find("/", 1)+1:]) show = parse.path[parse.path.find("/", 1)+1:]
if not re.search("%", show):
show = quote_plus(show)
data = get_http_data("http://webapi.tv4play.se/play/video_assets?type=episode&is_live=false&platform=web&node_nids=%s&per_page=99999" % show) data = get_http_data("http://webapi.tv4play.se/play/video_assets?type=episode&is_live=false&platform=web&node_nids=%s&per_page=99999" % show)
jsondata = json.loads(data) jsondata = json.loads(data)
episodes = [] episodes = []