From 3cd3edc1168a578bfd1bf257fec80cdced626530 Mon Sep 17 00:00:00 2001 From: Lauren Liberda Date: Sun, 20 Jun 2021 23:00:58 +0200 Subject: [PATCH] [youtube] fix the fancy georestricted error --- haruhi_dl/extractor/youtube.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/haruhi_dl/extractor/youtube.py b/haruhi_dl/extractor/youtube.py index 0d21c8e40..69223aca8 100644 --- a/haruhi_dl/extractor/youtube.py +++ b/haruhi_dl/extractor/youtube.py @@ -1814,8 +1814,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): error_desc, countries=self._search_regex( r'', - 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',