diff --git a/lib/svtplay_dl/fetcher/hls.py b/lib/svtplay_dl/fetcher/hls.py index 44efa12..29494af 100644 --- a/lib/svtplay_dl/fetcher/hls.py +++ b/lib/svtplay_dl/fetcher/hls.py @@ -100,8 +100,8 @@ def hlsparse(config, res, url, **kwargs): for n in subtitles[sub]: m3u8s = M3U8(httpobject.request("get", _get_full_url(n[0], url), cookies=res.cookies).text) streams[int(random.randint(1, 40))] = subtitle(copy.copy(config), "wrst", - _get_full_url(m3u8s.media_segment[0]["URI"], url), - subfix=n[1], output=copy.copy(output)) + _get_full_url(m3u8s.media_segment[0]["URI"], url), + subfix=n[1], output=copy.copy(output)) elif m3u8.media_segment: config.set("segments", False) diff --git a/lib/svtplay_dl/service/dplay.py b/lib/svtplay_dl/service/dplay.py index 7404d1e..d5bb57a 100644 --- a/lib/svtplay_dl/service/dplay.py +++ b/lib/svtplay_dl/service/dplay.py @@ -15,6 +15,7 @@ from svtplay_dl.subtitle import subtitle country = {"sv": ".se", "da": ".dk", "no": ".no"} + class Dplay(Service): supported_domains = ['dplay.se', 'dplay.dk', "dplay.no"] diff --git a/lib/svtplay_dl/service/urplay.py b/lib/svtplay_dl/service/urplay.py index 1ac78b8..e4e24b2 100644 --- a/lib/svtplay_dl/service/urplay.py +++ b/lib/svtplay_dl/service/urplay.py @@ -12,7 +12,6 @@ from svtplay_dl.fetcher.hls import hlsparse from svtplay_dl.log import log from svtplay_dl.error import ServiceError from svtplay_dl.subtitle import subtitle -from svtplay_dl.utils.text import filenamify class Urplay(Service, OpenGraphThumbMixin):