aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/downloader/ism.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/downloader/ism.py')
-rw-r--r--hypervideo_dl/downloader/ism.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/hypervideo_dl/downloader/ism.py b/hypervideo_dl/downloader/ism.py
index 09516ab..4d5618c 100644
--- a/hypervideo_dl/downloader/ism.py
+++ b/hypervideo_dl/downloader/ism.py
@@ -263,9 +263,11 @@ class IsmFD(FragmentFD):
count = 0
while count <= fragment_retries:
try:
- success, frag_content = self._download_fragment(ctx, segment['url'], info_dict)
+ success = self._download_fragment(ctx, segment['url'], info_dict)
if not success:
return False
+ frag_content = self._read_fragment(ctx)
+
if not extra_state['ism_track_written']:
tfhd_data = extract_box_data(frag_content, [b'moof', b'traf', b'tfhd'])
info_dict['_download_params']['track_id'] = u32.unpack(tfhd_data[4:8])[0]