From 388ab9486cccc19837ef87c0b17f706f071c1703 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 21 Apr 2014 18:42:07 +0200 Subject: [PATCH] aftonbladet: convert into new video fetcher --- lib/svtplay_dl/service/aftonbladet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/aftonbladet.py b/lib/svtplay_dl/service/aftonbladet.py index 6e7e562..9c9e190 100644 --- a/lib/svtplay_dl/service/aftonbladet.py +++ b/lib/svtplay_dl/service/aftonbladet.py @@ -8,7 +8,7 @@ import json from svtplay_dl.service import Service from svtplay_dl.utils import get_http_data from svtplay_dl.log import log -from svtplay_dl.fetcher.hls import download_hls +from svtplay_dl.fetcher.hls import HLS class Aftonbladet(Service): supported_domains = ['tv.aftonbladet.se'] @@ -36,4 +36,4 @@ class Aftonbladet(Service): streams = json.loads(get_http_data(streamsurl)) hls = streams["formats"]["hls"]["level3"]["m3u8"][0] playlist = "http://%s/%s/%s" % (hls["address"], hls["path"], hls["filename"]) - download_hls(options, playlist) + yield HLS(options, playlist, "0")