[vevo] Improve geo restriction detection

pull/8/head
Sergey M․ 2017-01-15 04:42:05 +07:00
rodzic b80e2ebc8d
commit 621a2800ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -206,7 +206,7 @@ class VevoIE(VevoBaseIE):
note='Retrieving oauth token', note='Retrieving oauth token',
errnote='Unable to retrieve 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( self.raise_geo_restricted(
'%s said: This page is currently unavailable in your region' % self.IE_NAME) '%s said: This page is currently unavailable in your region' % self.IE_NAME)