diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-04-21 15:04:55 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-04-21 15:04:55 +0200 |
commit | 5c1e6f69c421c244139b1f4c6d2759dadfbc1abd (patch) | |
tree | 02e47105ffe92c9e43b65cbb8cece92b8076671c /youtube_dl | |
parent | 757cda0a96e5efd0c1fb86824a99e558a7c797b0 (diff) |
[senate] Simplify
There isn't any problem if the 'formats' field only has one element
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/senateisvp.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/youtube_dl/extractor/senateisvp.py b/youtube_dl/extractor/senateisvp.py index fa6610261..d3b8a1be4 100644 --- a/youtube_dl/extractor/senateisvp.py +++ b/youtube_dl/extractor/senateisvp.py @@ -133,15 +133,9 @@ class SenateISVPIE(InfoExtractor): self._sort_formats(formats) - info_dict = { + return { 'id': video_id, 'title': title, + 'formats': formats, 'thumbnail': thumbnail, } - - if len(formats) >= 1: - info_dict.update({'formats': formats}) - else: - info_dict.update(formats[0]) - - return info_dict |