1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

remove old subtitle functions from kanal5 and svtplay

This commit is contained in:
Johan Andersson 2014-04-21 20:29:55 +02:00
parent 8acc75999a
commit 179689ad19
2 changed files with 0 additions and 12 deletions

View File

@ -69,8 +69,3 @@ class Kanal5(Service):
sys.exit(2) sys.exit(2)
options.other = "-W %s -y %s " % ("http://www.kanal5play.se/flash/K5StandardPlayer.swf", i["source"]) options.other = "-W %s -y %s " % ("http://www.kanal5play.se/flash/K5StandardPlayer.swf", i["source"])
yield RTMP(options, steambaseurl, i["bitrate"]) yield RTMP(options, steambaseurl, i["bitrate"])
def get_subtitle(self, options):
if self.subtitle:
data = get_http_data(self.subtitle, cookiejar=self.cj)
subtitle_json(options, data)

View File

@ -72,13 +72,6 @@ class Svtplay(Service, OpenGraphThumbMixin):
else: else:
yield HTTP(options, i["url"], "0") yield HTTP(options, i["url"], "0")
def get_subtitle(self, options):
if self.subtitle:
if options.output != "-":
data = get_http_data(self.subtitle)
subtitle_wsrt(options, data)
def find_all_episodes(self, options): def find_all_episodes(self, options):
parse = urlparse(self.url) parse = urlparse(self.url)
if parse.netloc == "www.oppetarkiv.se": if parse.netloc == "www.oppetarkiv.se":