From cbe698b4b0d7d1b8a9af5bbc3381a82855861f36 Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Mon, 22 Jul 2024 17:28:45 +1200 Subject: [PATCH] Add support for empty folder --- yt_dlp/extractor/googledrive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/googledrive.py b/yt_dlp/extractor/googledrive.py index 28e496a45..950d877f9 100644 --- a/yt_dlp/extractor/googledrive.py +++ b/yt_dlp/extractor/googledrive.py @@ -367,5 +367,7 @@ def make_playlist(items, playlist_id): ) title = json_folder_info[1][2] items = json_items[-1] + if not isinstance(items, list): + return self.playlist_result([], folder_id, title) return make_playlist(items, folder_id)