backwards compatabily

This commit is contained in:
Cyberes 2023-02-02 20:40:19 -07:00
parent cc29f29ae9
commit 6d1a092f83
1 changed files with 1 additions and 1 deletions

View File

@ -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