diff options
author | Sergey M. <dstftw@gmail.com> | 2015-06-15 02:38:33 +0500 |
---|---|---|
committer | Sergey M. <dstftw@gmail.com> | 2015-06-15 02:38:33 +0500 |
commit | 44773ad125001ee42cba3aaf85d98d40ff840981 (patch) | |
tree | 3ca5fc1eb325b6fd355278e121a9b94e972cd888 /youtube_dl | |
parent | 5774ef35c4d167f7c959041bf4efc5581a98f0a4 (diff) | |
parent | 976b03c56bddf20c978820474e307457523f4c05 (diff) |
Merge pull request #5975 from chaoskagami/niconico_qualitynote
Quality note for niconico
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/niconico.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py index 3cecebf95..e10348004 100644 --- a/youtube_dl/extractor/niconico.py +++ b/youtube_dl/extractor/niconico.py @@ -184,6 +184,11 @@ class NiconicoIE(InfoExtractor): extension = determine_ext(video_real_url) video_format = extension.upper() + if video_real_url.endswith('low'): + format_note = 'low' + else: + format_note = 'src' + thumbnail = ( xpath_text(video_info, './/thumbnail_url') or self._html_search_meta('image', webpage, 'thumbnail', default=None) or @@ -242,6 +247,7 @@ class NiconicoIE(InfoExtractor): 'title': title, 'ext': extension, 'format': video_format, + 'format_note' : format_note, 'thumbnail': thumbnail, 'description': description, 'uploader': uploader, |