mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-04 23:13:43 +08:00
Added duration to info dict
This commit is contained in:
committed by
GitHub
Unverified
parent
1063b4c707
commit
85ddc82695
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user