From 6d1a092f8350bf5bd9d547c1f5107f22063c94d4 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 2 Feb 2023 20:40:19 -0700 Subject: [PATCH] backwards compatabily --- ydl/yt_dlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydl/yt_dlp.py b/ydl/yt_dlp.py index d7a9ec4..68d54c6 100644 --- a/ydl/yt_dlp.py +++ b/ydl/yt_dlp.py @@ -29,7 +29,7 @@ class YDL: sizes.append(d) return tuple(sizes) - def playlist_contents(self, url: str) -> dict | bool: + def playlist_contents(self, url: str) -> Union[dict, bool]: ydl_opts = merge({ 'extract_flat': True, 'skip_download': True