mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-26 09:48:11 +00:00
[dailymotion] Fix uploader extraction
Now it looks directly in the info dictionary
This commit is contained in:
parent
cbfc470228
commit
7c86cd5ab1
1 changed files with 1 additions and 5 deletions
|
@ -101,10 +101,6 @@ class DailymotionIE(DailymotionBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||||
self.to_screen(u'Vevo video detected: %s' % vevo_id)
|
self.to_screen(u'Vevo video detected: %s' % vevo_id)
|
||||||
return self.url_result(u'vevo:%s' % vevo_id, ie='Vevo')
|
return self.url_result(u'vevo:%s' % vevo_id, ie='Vevo')
|
||||||
|
|
||||||
video_uploader = self._search_regex([r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a>',
|
|
||||||
# Looking for official user
|
|
||||||
r'<(?:span|a) .*?rel="author".*?>([^<]+?)</'],
|
|
||||||
webpage, 'video uploader', fatal=False)
|
|
||||||
age_limit = self._rta_search(webpage)
|
age_limit = self._rta_search(webpage)
|
||||||
|
|
||||||
video_upload_date = None
|
video_upload_date = None
|
||||||
|
@ -153,7 +149,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'uploader': video_uploader,
|
'uploader': info['owner_screenname'],
|
||||||
'upload_date': video_upload_date,
|
'upload_date': video_upload_date,
|
||||||
'title': self._og_search_title(webpage),
|
'title': self._og_search_title(webpage),
|
||||||
'subtitles': video_subtitles,
|
'subtitles': video_subtitles,
|
||||||
|
|
Loading…
Reference in a new issue