mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-19 01:34:12 +01:00
[dash] Fix --test
Bug in adbc4ec4bbfbe57842049cf9194384480f534859
This commit is contained in:
parent
4273cc776d
commit
4ac5b94807
@ -57,7 +57,7 @@ class DashSegmentsFD(FragmentFD):
|
||||
|
||||
def _resolve_fragments(self, fragments, ctx):
|
||||
fragments = fragments(ctx) if callable(fragments) else fragments
|
||||
return [next(fragments)] if self.params.get('test') else fragments
|
||||
return [next(iter(fragments))] if self.params.get('test') else fragments
|
||||
|
||||
def _get_fragments(self, fmt, ctx):
|
||||
fragment_base_url = fmt.get('fragment_base_url')
|
||||
|
Loading…
x
Reference in New Issue
Block a user