mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 09:17:48 +00:00
parent
71ebd35d50
commit
b45a9e698e
1 changed files with 7 additions and 2 deletions
|
@ -2100,8 +2100,13 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
else:
|
else:
|
||||||
self._downloader.report_warning('unable to extract uploader nickname')
|
self._downloader.report_warning('unable to extract uploader nickname')
|
||||||
|
|
||||||
channel_id = self._html_search_meta(
|
channel_id = (
|
||||||
'channelId', video_webpage, 'channel id')
|
str_or_none(video_details.get('channelId')) or
|
||||||
|
self._html_search_meta(
|
||||||
|
'channelId', video_webpage, 'channel id', default=None) or
|
||||||
|
self._search_regex(
|
||||||
|
r'data-channel-external-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
|
||||||
|
video_webpage, 'channel id', default=None, group='id'))
|
||||||
channel_url = 'http://www.youtube.com/channel/%s' % channel_id if channel_id else None
|
channel_url = 'http://www.youtube.com/channel/%s' % channel_id if channel_id else None
|
||||||
|
|
||||||
# thumbnail image
|
# thumbnail image
|
||||||
|
|
Loading…
Reference in a new issue