1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

kanal5play: support for kanal9play.se

This commit is contained in:
Johan Andersson 2013-02-21 20:08:29 +01:00
parent cd9f94f5eb
commit a682423e96

View File

@ -875,7 +875,7 @@ class Qbrick():
class Kanal5(): class Kanal5():
def handle(self, url): def handle(self, url):
return "kanal5play.se" in url return ("kanal5play.se" in url) or ("kanal9play.se" in url)
def get(self, options, url): def get(self, options, url):
match = re.search(".*video/([0-9]+)", url) match = re.search(".*video/([0-9]+)", url)
@ -907,7 +907,7 @@ class Kanal5():
class Kanal9(): class Kanal9():
def handle(self, url): def handle(self, url):
return ("kanal9play.se" in url) or ("kanal5.se" in url) return "kanal5.se" in url
def get(self, options, url): def get(self, options, url):
data = get_http_data(url) data = get_http_data(url)