[youtube] fix the fancy georestricted error
This commit is contained in:
parent
1d54631bfb
commit
e676b759d1
|
@ -1814,8 +1814,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
error_desc,
|
error_desc,
|
||||||
countries=self._search_regex(
|
countries=self._search_regex(
|
||||||
r'<meta itemprop="regionsAllowed" content="((?:(?:[A-Z]{2},)*[A-Z]{2})?)">',
|
r'<meta itemprop="regionsAllowed" content="((?:(?:[A-Z]{2},)*[A-Z]{2})?)">',
|
||||||
video_webpage, 'allowed region list').split(','),
|
video_webpage, 'allowed region list').split(','))
|
||||||
expected=True)
|
|
||||||
if error_desc and 'Playback on other websites has been disabled' in error_desc:
|
if error_desc and 'Playback on other websites has been disabled' in error_desc:
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'Embeds disabled for this video, account (with passed credit card or photo ID check, if in EU/EEA/CH/UK) is required',
|
'Embeds disabled for this video, account (with passed credit card or photo ID check, if in EU/EEA/CH/UK) is required',
|
||||||
|
|
Loading…
Reference in a new issue