diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-09-14 14:45:04 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-09-14 14:45:04 +0200 |
commit | 471a5ee908ee765c1ba1ff6a41051bcf71065064 (patch) | |
tree | e63b69894ee2e6847ef534061ea1a9ea0dba46dd /youtube_dl/extractor/trilulilu.py | |
parent | 19e1d35989970831007b7ca5d988fe0454f08a1f (diff) |
Set the ext field for each format
Diffstat (limited to 'youtube_dl/extractor/trilulilu.py')
-rw-r--r-- | youtube_dl/extractor/trilulilu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/trilulilu.py b/youtube_dl/extractor/trilulilu.py index f278951ba..0bf028f61 100644 --- a/youtube_dl/extractor/trilulilu.py +++ b/youtube_dl/extractor/trilulilu.py @@ -52,6 +52,7 @@ class TriluliluIE(InfoExtractor): { 'format': fnode.text, 'url': video_url_template % fnode.text, + 'ext': fnode.text.partition('-')[0] } for fnode in format_doc.findall('./formats/format') @@ -67,7 +68,6 @@ class TriluliluIE(InfoExtractor): } # TODO: Remove when #980 has been merged - info['url'] = formats[-1]['url'] - info['ext'] = formats[-1]['format'].partition('-')[0] + info.update(formats[-1]) return info |