aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/niconico.py
diff options
context:
space:
mode:
authorchaoskagami <chaos.kagami@gmail.com>2015-06-14 00:18:40 -0400
committerchaoskagami <chaos.kagami@gmail.com>2015-06-14 00:18:40 -0400
commit976b03c56bddf20c978820474e307457523f4c05 (patch)
treeb5a356f627dac4ce1b43a87fdac44cb9dd027c99 /youtube_dl/extractor/niconico.py
parenta617b10075d500c8a5198aba6ddadaa90642c6e5 (diff)
Quality note for niconico - at least notify whether you'll get low or src
Diffstat (limited to 'youtube_dl/extractor/niconico.py')
-rw-r--r--youtube_dl/extractor/niconico.py6
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,