1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

aftonbladet: convert into new video fetcher

This commit is contained in:
Johan Andersson 2014-04-21 18:42:07 +02:00
parent 2c94002f46
commit 388ab9486c

View File

@ -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")