TypeError: formats needs to be a dictionary, not a list

This commit is contained in:
Paper 2022-05-21 16:11:15 -04:00 committed by GitHub
parent f9eef66c32
commit b6b629f686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,12 +86,11 @@ class VidLiiIE(InfoExtractor):
formats = []
if len(sources) > 1:
formats = [sources[1][1]]
self._check_formats(formats, video_id)
add_format(sources[1][1])
if len(sources) > 0:
formats.append(sources[0][1])
map(add_format, formats)
add_format(sources[0][1])
self._check_formats(formats, video_id)
self._sort_formats(formats)
title = self._html_search_regex(