From 8d827d2460e6eabea92dec7766a5dce9598388bb Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Sun, 29 Sep 2024 00:24:50 +1200 Subject: [PATCH] Update tests --- yt_dlp/extractor/googledrive.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/googledrive.py b/yt_dlp/extractor/googledrive.py index 86900f576..65441c696 100644 --- a/yt_dlp/extractor/googledrive.py +++ b/yt_dlp/extractor/googledrive.py @@ -53,6 +53,17 @@ class GoogleDriveIE(InfoExtractor): 'duration': 184, 'thumbnail': 'https://drive.google.com/thumbnail?id=1IP0o8dHcQrIHGgVyp0Ofvx2cGfLzyO1x', }, + }, { + # shortcut url + 'url': 'https://drive.google.com/file/d/1_n3-8ZwEUV4OniMsLAJ_C1JEjuT2u5Pk/view?usp=drivesdk', + 'md5': '43d34f7be1acc0262f337a039d1ad12d', + 'info_dict': { + 'id': '1J1RCw2jcgUngrZRdpza-IHXYkardZ-4l', + 'ext': 'webm', + 'title': 'Forrest walk with Best Mind Refresh Music Mithran [tEvJKrE4cS0].webm', + 'duration': 512, + 'thumbnail': 'https://drive.google.com/thumbnail?id=1J1RCw2jcgUngrZRdpza-IHXYkardZ-4l', + }, }, { # video can't be watched anonymously due to view count limit reached, # but can be downloaded (see https://github.com/ytdl-org/youtube-dl/issues/14046) @@ -306,7 +317,7 @@ class GoogleDriveFolderIE(InfoExtractor): }, { 'note': 'Contains various formats and a subfolder, folder name was formerly mismatched.' 'also contains loop shortcut, shortcut to non-downloadable files, etc.', - 'url': 'https://drive.google.com/drive/folders/1jjrhqi94d8TSHSVMSdBjD49MOiHYpHfF', + 'url': 'https://docs.google.com/drive/folders/1jjrhqi94d8TSHSVMSdBjD49MOiHYpHfF', 'info_dict': { 'id': '1jjrhqi94d8TSHSVMSdBjD49MOiHYpHfF', 'title': '], sideChannel: {}});',