Browse Source

[kuwo] Check for georestriction

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
58be922079
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      youtube_dl/extractor/kuwo.py

+ 4
- 0
youtube_dl/extractor/kuwo.py View File

@ -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,


Loading…
Cancel
Save