mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
Cosmetics
This commit is contained in:
parent
975af9b8a3
commit
ca083ebe8e
@ -259,7 +259,7 @@ def parsem3u(data):
|
|||||||
return globdata, files
|
return globdata, files
|
||||||
|
|
||||||
def decode_f4f(fragID, fragData ):
|
def decode_f4f(fragID, fragData ):
|
||||||
start = fragData.find( "mdat" ) + 4
|
start = fragData.find("mdat") + 4
|
||||||
if (fragID > 1):
|
if (fragID > 1):
|
||||||
for dummy in range( 2 ):
|
for dummy in range( 2 ):
|
||||||
tagLen, = struct.unpack_from( ">L", fragData, start )
|
tagLen, = struct.unpack_from( ">L", fragData, start )
|
||||||
@ -359,7 +359,7 @@ def download_hds(options, url, swf):
|
|||||||
else:
|
else:
|
||||||
file_d = sys.stdout
|
file_d = sys.stdout
|
||||||
|
|
||||||
file_d.write(binascii.a2b_hex( "464c56010500000009000000001200010c00000000000000" ) )
|
file_d.write(binascii.a2b_hex("464c56010500000009000000001200010c00000000000000"))
|
||||||
file_d.write(base64.b64decode(test["metadata"]))
|
file_d.write(base64.b64decode(test["metadata"]))
|
||||||
file_d.write(binascii.a2b_hex("00000000"))
|
file_d.write(binascii.a2b_hex("00000000"))
|
||||||
|
|
||||||
@ -538,7 +538,7 @@ class Justin():
|
|||||||
stream["url"] = i.find("connect").text + "/" + i.find("play").text
|
stream["url"] = i.find("connect").text + "/" + i.find("play").text
|
||||||
streams[int(i.find("video_height").text)] = stream
|
streams[int(i.find("video_height").text)] = stream
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
None
|
pass
|
||||||
|
|
||||||
test = select_quality(options, streams)
|
test = select_quality(options, streams)
|
||||||
options.other = "-j '%s' -W %s" % (test["token"], options.resume)
|
options.other = "-j '%s' -W %s" % (test["token"], options.resume)
|
||||||
|
Loading…
Reference in New Issue
Block a user