Skip to content

Commit

Permalink
[test_YoutubeDL] Fix get_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Feb 14, 2020
1 parent de1121d commit e0abaab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,9 @@ def test_playlist_items_selection(self):

def get_ids(params):
ydl = YDL(params)
# make a copy because the dictionary can be modified
ydl.process_ie_result(playlist.copy())
# make a deep copy because the dictionary and nested entries
# can be modified
ydl.process_ie_result(copy.deepcopy(playlist))
return [int(v['id']) for v in ydl.downloaded_info_dicts]

result = get_ids({})
Expand Down

0 comments on commit e0abaab

Please sign in to comment.