mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-24 19:22:06 +00:00
Added description extraction
This commit is contained in:
parent
f17bcef192
commit
96d526a289
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,7 @@ class SexLikeRealIE(InfoExtractor):
|
||||||
)["videoData"]
|
)["videoData"]
|
||||||
|
|
||||||
title = (video_data["title"] or (self._html_search_meta('twitter:title',
|
title = (video_data["title"] or (self._html_search_meta('twitter:title',
|
||||||
webpage, 'description')).split('-')[0].strip())
|
webpage, 'title')).split('-')[0].strip())
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for quality in video_data['src']:
|
for quality in video_data['src']:
|
||||||
|
@ -55,6 +55,10 @@ class SexLikeRealIE(InfoExtractor):
|
||||||
like_count = int_or_none(video_data.get('likes'))
|
like_count = int_or_none(video_data.get('likes'))
|
||||||
duration = float_or_none(video_data.get('duration'))
|
duration = float_or_none(video_data.get('duration'))
|
||||||
|
|
||||||
|
description = self._html_search_meta(
|
||||||
|
['description', 'twitter:description'], webpage, 'description'
|
||||||
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'display_id': display_id,
|
'display_id': display_id,
|
||||||
|
@ -62,5 +66,6 @@ class SexLikeRealIE(InfoExtractor):
|
||||||
'thumbnail': video_data.get('posterURL'),
|
'thumbnail': video_data.get('posterURL'),
|
||||||
'like_count': like_count,
|
'like_count': like_count,
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
|
'description': description,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue