projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d00a2d
)
[naver] Enhanced error detection
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 27 May 2015 06:20:29 +0000
(14:20 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 27 May 2015 06:20:29 +0000
(14:20 +0800)
youtube_dl/extractor/naver.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/naver.py
b/youtube_dl/extractor/naver.py
index c10405f04d3cc1b3e89004029b7502112e9baa29..fdd82578476e1c99fde91665dacaf7212e9b973b 100644
(file)
--- 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)