1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

download_hds: fix some decoding problems

Saw some issues while downloading streams from urplay.
This commit is contained in:
Johan Andersson 2013-02-16 21:05:08 +01:00
parent f7fa142871
commit 0ddacb8bcc

View File

@ -262,10 +262,9 @@ def parsem3u(data):
def decode_f4f(fragID, fragData):
start = fragData.find("mdat") + 4
if (fragID > 1):
for dummy in range(2):
tagLen, = struct.unpack_from(">L", fragData, start)
tagLen &= 0x00ffffff
start += tagLen + 11 + 4
tagLen, = struct.unpack_from(">L", fragData, start)
tagLen &= 0x00ffffff
start += tagLen + 11 + 4
return start
def get_http_data(url, method="GET", header="", data=""):