This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[senate] Simplify
There isn't any problem if the 'formats' field only has one element
totalwebcasting
Jaime Marquínez Ferrándiz
10 years ago
parent
757cda0a96
commit
5c1e6f69c4
1 changed files
with
2 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-8
youtube_dl/extractor/senateisvp.py
+ 2
- 8
youtube_dl/extractor/senateisvp.py
View File
@ -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
Write
Preview
Loading…
Cancel
Save