mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 06:35:51 -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)
|
return urljoin('https://www.youtube.com', url_or_path)
|
||||||
|
|
||||||
def _extract_uploader_id(self, uploader_url):
|
def _extract_uploader_id(self, uploader_url):
|
||||||
return self._search_regex(
|
result = 'fail'
|
||||||
|
try:
|
||||||
|
result = self._search_regex(
|
||||||
r'/(?:(?:channel|user)/|(?=@))([^/?&#]+)', uploader_url or '',
|
r'/(?:(?:channel|user)/|(?=@))([^/?&#]+)', uploader_url or '',
|
||||||
'uploader id', default=None)
|
'uploader id', default=None)
|
||||||
|
return result
|
||||||
|
except:
|
||||||
|
result = 'NotFound'
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
class YoutubeIE(YoutubeBaseInfoExtractor):
|
class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue