From 4ac5b94807e75dc750459b8db6aa95d3b5275a1b Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 23 Dec 2021 03:34:18 +0530 Subject: [PATCH] [dash] Fix `--test` Bug in adbc4ec4bbfbe57842049cf9194384480f534859 --- yt_dlp/downloader/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/downloader/dash.py b/yt_dlp/downloader/dash.py index 4c23edd32..a845ee7d3 100644 --- a/yt_dlp/downloader/dash.py +++ b/yt_dlp/downloader/dash.py @@ -57,7 +57,7 @@ def real_download(self, filename, info_dict): 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')