Added duration to info dict

This commit is contained in:
JChris246 2019-01-30 18:31:07 -04:00 committed by GitHub
parent 1063b4c707
commit 85ddc82695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,8 @@ class DrTuberIE(InfoExtractor):
})
self._sort_formats(formats)
duration = str_to_int(video_data.get('duration')) or None
title = self._html_search_regex(
(r'<h1[^>]+class=["\']title[^>]+>([^<]+)',
r'<title>([^<]+)\s*@\s+DrTuber',
@ -103,4 +105,5 @@ class DrTuberIE(InfoExtractor):
'comment_count': comment_count,
'categories': categories,
'age_limit': self._rta_search(webpage),
'duration': duration,
}