mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Merge pull request #5975 from chaoskagami/niconico_qualitynote
Quality note for niconico
This commit is contained in:
commit
44773ad125
1 changed files with 6 additions and 0 deletions
|
@ -184,6 +184,11 @@ def _real_extract(self, url):
|
|||
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 @@ def _real_extract(self, url):
|
|||
'title': title,
|
||||
'ext': extension,
|
||||
'format': video_format,
|
||||
'format_note' : format_note,
|
||||
'thumbnail': thumbnail,
|
||||
'description': description,
|
||||
'uploader': uploader,
|
||||
|
|
Loading…
Reference in a new issue