mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[naver] Enhanced error detection
This commit is contained in:
parent
6d00a2dcd1
commit
c23848b3c5
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ def _real_extract(self, url):
|
||||||
webpage)
|
webpage)
|
||||||
if m_id is None:
|
if m_id is None:
|
||||||
m_error = re.search(
|
m_error = re.search(
|
||||||
r'(?s)<div class="nation_error">\s*(?:<!--.*?-->)?\s*<p class="[^"]+">(?P<msg>.+?)</p>\s*</div>',
|
r'(?s)<div class="(?:nation_error|nation_box)">\s*(?:<!--.*?-->)?\s*<p class="[^"]+">(?P<msg>.+?)</p>\s*</div>',
|
||||||
webpage)
|
webpage)
|
||||||
if m_error:
|
if m_error:
|
||||||
raise ExtractorError(clean_html(m_error.group('msg')), expected=True)
|
raise ExtractorError(clean_html(m_error.group('msg')), expected=True)
|
||||||
|
|
Loading…
Reference in a new issue