aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-02-04 01:26:25 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-02-04 01:26:25 +0800
commit58be922079a09bc56ff331864b094ba38beaf26e (patch)
tree308667dfa85ba3b0b039be3d7e8e95753432edfc /youtube_dl/extractor
parentc84d3a557de8eddc8e63adbd11ab40877f52c502 (diff)
[kuwo] Check for georestriction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/kuwo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/kuwo.py b/youtube_dl/extractor/kuwo.py
index 0c8ed5d07..f641edef8 100644
--- a/youtube_dl/extractor/kuwo.py
+++ b/youtube_dl/extractor/kuwo.py
@@ -31,6 +31,10 @@ class KuwoBaseIE(InfoExtractor):
(file_format['ext'], file_format.get('br', ''), song_id),
song_id, note='Download %s url info' % file_format['format'],
)
+
+ if song_url == 'IPDeny':
+ raise ExtractorError('This song is blocked in this region', expected=True)
+
if song_url.startswith('http://') or song_url.startswith('https://'):
formats.append({
'url': song_url,