mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
parent
b02b293919
commit
1e6de72d64
@ -17,6 +17,7 @@ class Aftonbladet(Service):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search('data-aptomaId="([-0-9a-z]+)"', data)
|
||||
|
@ -20,6 +20,7 @@ class Bambuser(Service, OpenGraphThumbMixin):
|
||||
return
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
json_url = "http://player-c.api.bambuser.com/getVideo.json?api_key=005f64509e19a868399060af746a00aa&vid=%s" % match.group(1)
|
||||
|
@ -17,6 +17,7 @@ class Bigbrother(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r'id="(bcPl[^"]+)"', data)
|
||||
|
@ -16,6 +16,7 @@ class Dbtv(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
parse = urlparse(self.url)
|
||||
|
@ -23,6 +23,7 @@ class Disney(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r"Grill.burger=({.*}):", data)
|
||||
|
@ -19,6 +19,7 @@ class Dr(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r'resource:[ ]*"([^"]*)",', data)
|
||||
|
@ -20,6 +20,7 @@ class Expressen(Service):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search("xmlUrl=([^ ]+)\" ", data)
|
||||
|
@ -23,6 +23,7 @@ class Hbo(Service):
|
||||
return
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search("^/(.*).html", other)
|
||||
|
@ -63,6 +63,7 @@ class Kanal5(Service):
|
||||
options.output = title
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
if data["hasSubtitle"]:
|
||||
|
@ -18,6 +18,7 @@ class Lemonwhale(Service):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r'video url-([^"]+)', data)
|
||||
|
@ -32,6 +32,7 @@ class Mtvnn(Service, OpenGraphThumbMixin):
|
||||
options.output = title
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
swfurl = mediagen.find("{http://search.yahoo.com/mrss/}player").attrib["url"]
|
||||
|
@ -32,6 +32,7 @@ class Mtvservices(Service):
|
||||
sa = list(ss.iter("rendition"))
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
for i in sa:
|
||||
|
@ -19,6 +19,7 @@ class Nrk(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search("data-subtitlesurl = \"(/.*)\"", data)
|
||||
|
@ -17,6 +17,7 @@ class Picsearch(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
ajax_auth = re.search(r"picsearch_ajax_auth = '(\w+)'", data)
|
||||
|
@ -17,6 +17,7 @@ class Qbrick(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
if re.findall(r"di.se", self.url):
|
||||
|
@ -19,6 +19,7 @@ class Radioplay(Service):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r"RP.vcdData = ({.*});</script>", data)
|
||||
|
@ -17,6 +17,7 @@ class Ruv(Service):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r'"([^"]+geo.php)"', data)
|
||||
|
@ -21,6 +21,7 @@ class Sr(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r'href="(/sida/[\.\/=a-z0-9&;\?]+playaudio=\d+)"', data)
|
||||
|
@ -60,6 +60,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
options.output = outputfilename(data, options.output, ensure_unicode(self.get_urldata()))
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
if data["video"]["subtitleReferences"]:
|
||||
|
@ -87,6 +87,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
options.output = title
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
for i in sa:
|
||||
|
@ -48,6 +48,7 @@ class Twitch(Service):
|
||||
urlp = urlparse(self.url)
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.match(r'/(\w+)/([bcv])/(\d+)', urlp.path)
|
||||
|
@ -29,6 +29,7 @@ class Urplay(Service, OpenGraphThumbMixin):
|
||||
return
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
data = match.group(1)
|
||||
|
@ -38,6 +38,7 @@ class Vg(Service, OpenGraphThumbMixin):
|
||||
options.output = title
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
if "hds" in jsondata["streamUrls"]:
|
||||
|
@ -70,6 +70,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
||||
options.live = True
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
if dataj["sami_path"]:
|
||||
|
@ -16,6 +16,7 @@ class Vimeo(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search('data-config-url="([^"]+)" data-fallback-url', data)
|
||||
|
@ -17,6 +17,7 @@ class Youplay(Service, OpenGraphThumbMixin):
|
||||
data = self.get_urldata()
|
||||
|
||||
if self.exclude(options):
|
||||
yield ServiceError("Excluding video")
|
||||
return
|
||||
|
||||
match = re.search(r'script async defer src="(//content.youplay.se[^"]+)"', data)
|
||||
|
Loading…
Reference in New Issue
Block a user