From ea80c73a5b98785ae1a2d63993191775b14b3f82 Mon Sep 17 00:00:00 2001 From: mytja Date: Tue, 4 Jan 2022 19:06:05 +0100 Subject: [PATCH] Add isPlayable to playlist --- youtubesearchpython/core/playlist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtubesearchpython/core/playlist.py b/youtubesearchpython/core/playlist.py index 2f40ad1..8503488 100644 --- a/youtubesearchpython/core/playlist.py +++ b/youtubesearchpython/core/playlist.py @@ -150,6 +150,7 @@ def __getComponents(self) -> None: "duration": self.__getValue(video, ["lengthText", "accessibility", "accessibilityData", "label"]), }, "link": "https://www.youtube.com" + self.__getValue(video, ["navigationEndpoint", "commandMetadata", "webCommandMetadata", "url"]), + "isPlayable": self.__getValue(video, ["isPlayable"]), } videos.append(j) except: