mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-24 23:25:54 -07:00
TypeError: formats
needs to be a dictionary, not a list
This commit is contained in:
parent
f9eef66c32
commit
b6b629f686
1 changed files with 3 additions and 4 deletions
|
@ -86,12 +86,11 @@ class VidLiiIE(InfoExtractor):
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
if len(sources) > 1:
|
if len(sources) > 1:
|
||||||
formats = [sources[1][1]]
|
add_format(sources[1][1])
|
||||||
self._check_formats(formats, video_id)
|
|
||||||
if len(sources) > 0:
|
if len(sources) > 0:
|
||||||
formats.append(sources[0][1])
|
add_format(sources[0][1])
|
||||||
map(add_format, formats)
|
|
||||||
|
|
||||||
|
self._check_formats(formats, video_id)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue