]> jfr.im git - yt-dlp.git/commitdiff
[utils] `ISO3166Utils`: Add `EU` and `AP`
authorpukkandan <redacted>
Wed, 18 May 2022 08:36:41 +0000 (14:06 +0530)
committerpukkandan <redacted>
Thu, 19 May 2022 14:35:26 +0000 (20:05 +0530)
Fixes https://github.com/yt-dlp/yt-dlp/pull/3302#discussion_r875528517

yt_dlp/utils.py

index f02f71177083908cdd5bd65871eb380679a2ee80..41157f5de46a9105c9e0d419c25f293fcbab6884 100644 (file)
@@ -4166,6 +4166,9 @@ class ISO3166Utils:
         'YE': 'Yemen',
         'ZM': 'Zambia',
         'ZW': 'Zimbabwe',
+        # Not ISO 3166 codes, but used for IP blocks
+        'AP': 'Asia/Pacific Region',
+        'EU': 'Europe',
     }
 
     @classmethod