diff --git a/lib/svtplay_dl/service/kanal5.py b/lib/svtplay_dl/service/kanal5.py index ea87446..a3cd6b1 100644 --- a/lib/svtplay_dl/service/kanal5.py +++ b/lib/svtplay_dl/service/kanal5.py @@ -58,6 +58,7 @@ class Kanal5(Service): url = "http://www.kanal5play.se/api/getVideo?format=FLASH&videoId=%s" % video_id data = json.loads(get_http_data(url, cookiejar=self.cj)) + options.cookiejar = self.cj if not options.live: options.live = data["isLive"] if data["hasSubtitle"]: diff --git a/lib/svtplay_dl/subtitle/__init__.py b/lib/svtplay_dl/subtitle/__init__.py index 66b71e6..2add454 100644 --- a/lib/svtplay_dl/subtitle/__init__.py +++ b/lib/svtplay_dl/subtitle/__init__.py @@ -44,7 +44,7 @@ class subtitle_tt(subtitle): class subtitle_json(subtitle): def download(self, options): - self.subtitle = get_http_data(self.url) + self.subtitle = get_http_data(self.url, cookiejar=options.cookiejar) data = json.loads(self.subtitle) number = 1 subs = ""