projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b80e2eb
)
[vevo] Improve geo restriction detection
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Jan 2017 21:42:05 +0000
(
04:42
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Jan 2017 21:42:05 +0000
(
04:42
+0700)
youtube_dl/extractor/vevo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vevo.py
b/youtube_dl/extractor/vevo.py
index d82261e5eec5f3c575bc48f23b23c64aa0355f83..f0a8075fbf81b7e87c76edaed7a6ab1bd90efefb 100644
(file)
--- a/
youtube_dl/extractor/vevo.py
+++ b/
youtube_dl/extractor/vevo.py
@@
-206,7
+206,7
@@
class VevoIE(VevoBaseIE):
note='Retrieving oauth token',
errnote='Unable to retrieve oauth token')
- if
'THIS PAGE IS CURRENTLY UNAVAILABLE IN YOUR REGION' in webpage
:
+ if
re.search(r'(?i)THIS PAGE IS CURRENTLY UNAVAILABLE IN YOUR REGION', webpage)
:
self.raise_geo_restricted(
'%s said: This page is currently unavailable in your region' % self.IE_NAME)