mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
service: no need to check video streams when we force subtitles
This commit is contained in:
parent
f249c3c406
commit
782ad2854e
@ -74,6 +74,9 @@ class Kanal5(Service):
|
||||
else:
|
||||
options.output = title
|
||||
|
||||
if options.force_subtitle:
|
||||
return
|
||||
|
||||
for i in data["streams"]:
|
||||
if i["drmProtected"]:
|
||||
log.error("We cant download drm files for this site.")
|
||||
|
@ -24,6 +24,10 @@ class Nrk(Service, OpenGraphThumbMixin):
|
||||
parse = urlparse(self.url)
|
||||
subtitle = "%s://%s%s" % (parse.scheme, parse.netloc, match.group(1))
|
||||
yield subtitle_tt(subtitle)
|
||||
|
||||
if options.force_subtitle:
|
||||
return
|
||||
|
||||
match = re.search(r'data-media="(.*manifest.f4m)"', data)
|
||||
if match:
|
||||
manifest_url = match.group(1)
|
||||
|
@ -71,6 +71,9 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
else:
|
||||
options.output = title
|
||||
|
||||
if options.force_subtitle:
|
||||
return
|
||||
|
||||
for i in data["video"]["videoReferences"]:
|
||||
parse = urlparse(i["url"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user