1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-28 13:11:49 +00:00

Added description extraction

This commit is contained in:
JChris246 2020-06-30 20:21:14 -04:00
parent f17bcef192
commit 96d526a289

View file

@ -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,
} }