Skip to content

A feature-rich command-line audio/video downloader

[GoogleDrive] fix redirect loop (closes #23919)

Stefan-Gabriel Muscalu67475072361f
diff --git a/youtube_dl/extractor/googledrive.py b/youtube_dl/extractor/googledrive.py
index 589e4d5c37..85c6517f36 100644
--- a/youtube_dl/extractor/googledrive.py
+++ b/youtube_dl/extractor/googledrive.py
@@ -265,6 +265,8 @@ class GoogleDriveIE(InfoExtractor):
subtitles_id = ttsurl.encode('utf-8').decode(
'unicode_escape').split('=')[-1]
+ self._downloader.cookiejar.clear('.google.com')
+
return {
'id': video_id,
'title': title,