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:
parent
96aa0b8119
commit
2ea3a26ffb
@ -107,7 +107,9 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
|
||||
def find_all_episodes(self, options):
|
||||
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)
|
||||
jsondata = json.loads(data)
|
||||
episodes = []
|
||||
|
Loading…
Reference in New Issue
Block a user