aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/adn.py
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2024-12-03 20:22:21 +0000
committerGitHub <noreply@github.com>2024-12-03 20:22:21 +0000
commit2b67ac300ac8b44368fb121637d1743cea8c5b6b (patch)
tree19ccfa8c942b5741bdc90a7f51d10c082b8743c1 /yt_dlp/extractor/adn.py
parentc038a7b187ba24360f14134842a7a2cf897c33b1 (diff)
[cleanup] Misc (#11716)
Authored by: bashonly, seproDev Co-authored-by: sepro <sepro@sepr0.com>
Diffstat (limited to 'yt_dlp/extractor/adn.py')
-rw-r--r--yt_dlp/extractor/adn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/adn.py b/yt_dlp/extractor/adn.py
index 919e1d6af..7dff40556 100644
--- a/yt_dlp/extractor/adn.py
+++ b/yt_dlp/extractor/adn.py
@@ -232,7 +232,7 @@ Format: Marked,Start,End,Style,Name,MarginL,MarginR,MarginV,Effect,Text'''
error = self._parse_json(e.cause.response.read(), video_id)
message = error.get('message')
- if e.cause.code == 403 and error.get('code') == 'player-bad-geolocation-country':
+ if e.cause.status == 403 and error.get('code') == 'player-bad-geolocation-country':
self.raise_geo_restricted(msg=message)
raise ExtractorError(message)
else: