aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-27 14:20:29 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-27 14:20:29 +0800
commitc23848b3c5244f8ef1501adfd04a32111b12d7ff (patch)
treed8ff0cf8f0dfc693e01a95896ff8abb2a8ce4334 /youtube_dl/extractor
parent6d00a2dcd110f12a0aa110f5479df76613792fbd (diff)
[naver] Enhanced error detection
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/naver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/naver.py b/youtube_dl/extractor/naver.py
index c10405f04..fdd825784 100644
--- a/youtube_dl/extractor/naver.py
+++ b/youtube_dl/extractor/naver.py
@@ -35,7 +35,7 @@ class NaverIE(InfoExtractor):
webpage)
if m_id is None:
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)
if m_error:
raise ExtractorError(clean_html(m_error.group('msg')), expected=True)