projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a617b10
)
Quality note for niconico - at least notify whether you'll get low or src
author
chaoskagami
<chaos.kagami@gmail.com>
Sun, 14 Jun 2015 04:18:40 +0000
(
00:18
-0400)
committer
chaoskagami
<chaos.kagami@gmail.com>
Sun, 14 Jun 2015 04:18:40 +0000
(
00:18
-0400)
youtube_dl/extractor/niconico.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/niconico.py
b/youtube_dl/extractor/niconico.py
index 3cecebf95a4acd0a388da5984aebc2822e79b32c..e10348004bd266d0b5764c2d644ac8d5dd73da00 100644
(file)
--- 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,