mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 23:24:16 +01:00
viaplay: easier to read .endswith instead if len - 3
This commit is contained in:
parent
8cb76b98f5
commit
dde3672966
@ -81,7 +81,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
|||||||
|
|
||||||
if streamj["streams"]["medium"]:
|
if streamj["streams"]["medium"]:
|
||||||
filename = streamj["streams"]["medium"]
|
filename = streamj["streams"]["medium"]
|
||||||
if filename[len(filename)-3:] == "f4m":
|
if filename.endswith("f4m"):
|
||||||
manifest = "%s?hdcore=2.8.0&g=hejsan" % filename
|
manifest = "%s?hdcore=2.8.0&g=hejsan" % filename
|
||||||
streams = hdsparse(copy.copy(options), manifest)
|
streams = hdsparse(copy.copy(options), manifest)
|
||||||
if streams:
|
if streams:
|
||||||
|
Loading…
Reference in New Issue
Block a user