diff options
author | rysson <robert.kalinowski@sharkbits.com> | 2025-03-15 21:47:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-15 21:47:50 +0100 |
commit | be0d819e1103195043f6743650781f0d4d343f6d (patch) | |
tree | bc31fc94b01a2456a559cc08532754993bb62c95 | |
parent | df9ebeec00d658693252978d1ffb885e67aa6ab6 (diff) |
[ie/cda] Fix login support (#12552)
Closes #10306
Authored by: rysson
-rw-r--r-- | yt_dlp/extractor/cda.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/yt_dlp/extractor/cda.py b/yt_dlp/extractor/cda.py index b2738e492..96f25c22a 100644 --- a/yt_dlp/extractor/cda.py +++ b/yt_dlp/extractor/cda.py @@ -121,10 +121,7 @@ class CDAIE(InfoExtractor): }, **kwargs) def _perform_login(self, username, password): - app_version = random.choice(( - '1.2.88 build 15306', - '1.2.174 build 18469', - )) + app_version = '1.2.255 build 21541' android_version = random.randrange(8, 14) phone_model = random.choice(( # x-kom.pl top selling Android smartphones, as of 2022-12-26 @@ -190,7 +187,7 @@ class CDAIE(InfoExtractor): meta = self._download_json( f'{self._BASE_API_URL}/video/{video_id}', video_id, headers=self._API_HEADERS)['video'] - uploader = traverse_obj(meta, 'author', 'login') + uploader = traverse_obj(meta, ('author', 'login', {str})) formats = [{ 'url': quality['file'], |