Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Laura i Domiś
haruhi-dl
Commits
3cd3edc1
Commit
3cd3edc1
authored
Jun 20, 2021
by
Lauren N. Liberda
Committed by
Dominika Liberda
Oct 23, 2021
Browse files
[youtube] fix the fancy georestricted error
parent
09c16b97
Changes
1
Hide whitespace changes
Inline
Side-by-side
haruhi_dl/extractor/youtube.py
View file @
3cd3edc1
...
...
@@ -1814,8 +1814,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
error_desc
,
countries
=
self
.
_search_regex
(
r
'<meta itemprop="regionsAllowed" content="((?:(?:[A-Z]{2},)*[A-Z]{2})?)">'
,
video_webpage
,
'allowed region list'
).
split
(
','
),
expected
=
True
)
video_webpage
,
'allowed region list'
).
split
(
','
))
if
error_desc
and
'Playback on other websites has been disabled'
in
error_desc
:
raise
ExtractorError
(
'Embeds disabled for this video, account (with passed credit card or photo ID check, if in EU/EEA/CH/UK) is required'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment