Browse Source

[naver] Enhanced error detection

totalwebcasting
Yen Chi Hsuan 10 years ago
parent
commit
c23848b3c5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/naver.py

+ 1
- 1
youtube_dl/extractor/naver.py View File

@ -35,7 +35,7 @@ class NaverIE(InfoExtractor):
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…
Cancel
Save