mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
flake8 fixes
This commit is contained in:
parent
4fc53137d1
commit
9619936f2a
@ -100,8 +100,8 @@ def hlsparse(config, res, url, **kwargs):
|
|||||||
for n in subtitles[sub]:
|
for n in subtitles[sub]:
|
||||||
m3u8s = M3U8(httpobject.request("get", _get_full_url(n[0], url), cookies=res.cookies).text)
|
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",
|
streams[int(random.randint(1, 40))] = subtitle(copy.copy(config), "wrst",
|
||||||
_get_full_url(m3u8s.media_segment[0]["URI"], url),
|
_get_full_url(m3u8s.media_segment[0]["URI"], url),
|
||||||
subfix=n[1], output=copy.copy(output))
|
subfix=n[1], output=copy.copy(output))
|
||||||
|
|
||||||
elif m3u8.media_segment:
|
elif m3u8.media_segment:
|
||||||
config.set("segments", False)
|
config.set("segments", False)
|
||||||
|
@ -15,6 +15,7 @@ from svtplay_dl.subtitle import subtitle
|
|||||||
|
|
||||||
country = {"sv": ".se", "da": ".dk", "no": ".no"}
|
country = {"sv": ".se", "da": ".dk", "no": ".no"}
|
||||||
|
|
||||||
|
|
||||||
class Dplay(Service):
|
class Dplay(Service):
|
||||||
supported_domains = ['dplay.se', 'dplay.dk', "dplay.no"]
|
supported_domains = ['dplay.se', 'dplay.dk', "dplay.no"]
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ from svtplay_dl.fetcher.hls import hlsparse
|
|||||||
from svtplay_dl.log import log
|
from svtplay_dl.log import log
|
||||||
from svtplay_dl.error import ServiceError
|
from svtplay_dl.error import ServiceError
|
||||||
from svtplay_dl.subtitle import subtitle
|
from svtplay_dl.subtitle import subtitle
|
||||||
from svtplay_dl.utils.text import filenamify
|
|
||||||
|
|
||||||
|
|
||||||
class Urplay(Service, OpenGraphThumbMixin):
|
class Urplay(Service, OpenGraphThumbMixin):
|
||||||
|
Loading…
Reference in New Issue
Block a user