mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
Temp work around for uploader_id
Ignores the uploader_id as a try-catch. YouTube probably changed something.
This commit is contained in:
parent
3e92c60fcd
commit
6c56acb7ef
1 changed files with 9 additions and 3 deletions
|
@ -453,9 +453,15 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
|||
return urljoin('https://www.youtube.com', url_or_path)
|
||||
|
||||
def _extract_uploader_id(self, uploader_url):
|
||||
return self._search_regex(
|
||||
r'/(?:(?:channel|user)/|(?=@))([^/?&#]+)', uploader_url or '',
|
||||
'uploader id', default=None)
|
||||
result = 'fail'
|
||||
try:
|
||||
result = self._search_regex(
|
||||
r'/(?:(?:channel|user)/|(?=@))([^/?&#]+)', uploader_url or '',
|
||||
'uploader id', default=None)
|
||||
return result
|
||||
except:
|
||||
result = 'NotFound'
|
||||
return result
|
||||
|
||||
|
||||
class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue