[naver] Enhanced error detection
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 27 May 2015 06:20:29 +0000 (14:20 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 27 May 2015 06:20:29 +0000 (14:20 +0800)
youtube_dl/extractor/naver.py

index c10405f04d3cc1b3e89004029b7502112e9baa29..fdd82578476e1c99fde91665dacaf7212e9b973b 100644 (file)
@@ -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)