Skip to content

A feature-rich command-line audio/video downloader

[cookies] Allow `--cookies-from-browser` for Safari on iOS (#14950)

pha1n0qe6414d64e73d
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py
index 4fdc0b8de7..4e74c4b396 100644
--- a/yt_dlp/cookies.py
+++ b/yt_dlp/cookies.py
@@ -557,7 +557,7 @@ class WindowsChromeCookieDecryptor(ChromeCookieDecryptor):
def _extract_safari_cookies(profile, logger):
- if sys.platform != 'darwin':
+ if sys.platform not in ('darwin', 'ios'):
raise ValueError(f'unsupported platform: {sys.platform}')
if profile: