[downloader/f4m] Skip fragment downloading in test (Closes #9214)
This commit is contained in:
parent
663ee5f0a9
commit
3c3d9b78f9
@ -328,8 +328,11 @@ class F4mFD(FragmentFD):
|
|||||||
fragments_list = build_fragments_list(boot_info)
|
fragments_list = build_fragments_list(boot_info)
|
||||||
test = self.params.get('test', False)
|
test = self.params.get('test', False)
|
||||||
if test:
|
if test:
|
||||||
# We only download the first fragment
|
# We will not download any fragments during test since truncated
|
||||||
fragments_list = fragments_list[:1]
|
# fragment file may introduce bogus parse error in FlvReader thus
|
||||||
|
# making the whole test to fail erroneously
|
||||||
|
return True
|
||||||
|
|
||||||
total_frags = len(fragments_list)
|
total_frags = len(fragments_list)
|
||||||
# For some akamai manifests we'll need to add a query to the fragment url
|
# For some akamai manifests we'll need to add a query to the fragment url
|
||||||
akamai_pv = xpath_text(doc, _add_ns('pv-2.0'))
|
akamai_pv = xpath_text(doc, _add_ns('pv-2.0'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user