1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

viaplay: easier to read .endswith instead if len - 3

This commit is contained in:
Johan Andersson 2014-09-07 23:50:53 +02:00
parent 8cb76b98f5
commit dde3672966

View File

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