1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-06-30 11:02:54 -05:00

[ie] Migrate commonly plural fields to lists (#8917)

Authored by: llistochek, pukkandan
Related: #3944
This commit is contained in:
Lev
2024-02-20 07:19:24 +00:00
committed by GitHub
parent 7e90e34fa4
commit 104a7b5a46
7 changed files with 65 additions and 24 deletions

View File

@ -941,7 +941,7 @@ class TestYoutubeDL(unittest.TestCase):
def get_videos(filter_=None):
ydl = YDL({'match_filter': filter_, 'simulate': True})
for v in videos:
ydl.process_ie_result(v, download=True)
ydl.process_ie_result(v.copy(), download=True)
return [v['id'] for v in ydl.downloaded_info_dicts]
res = get_videos()