1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

flake8 fixes

This commit is contained in:
Johan Andersson 2018-05-27 16:10:22 +02:00
parent 4fc53137d1
commit 9619936f2a
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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