mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 19:12:49 -05:00
[nrk] Improve geo restriction detection
This commit is contained in:
@ -93,8 +93,9 @@ class NRKBaseIE(InfoExtractor):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
if not entries:
|
if not entries:
|
||||||
message_type = data.get('messageType')
|
message_type = data.get('messageType', '')
|
||||||
if message_type == 'ProgramIsGeoBlocked' and not self._faked_ip:
|
# Can be ProgramIsGeoBlocked or ChannelIsGeoBlocked*
|
||||||
|
if 'IsGeoBlocked' in message_type and not self._faked_ip:
|
||||||
self.report_warning(
|
self.report_warning(
|
||||||
'Video is geo restricted, trying to fake IP')
|
'Video is geo restricted, trying to fake IP')
|
||||||
self._fake_ip()
|
self._fake_ip()
|
||||||
|
Reference in New Issue
Block a user