From b15691207b1850862fc555cb28216cc43ab75a5d Mon Sep 17 00:00:00 2001 From: DYefremov Date: Tue, 6 Oct 2020 11:25:26 +0300 Subject: [PATCH] minor fix for yt --- app/tools/yt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tools/yt.py b/app/tools/yt.py index 92e5051d..9067b176 100644 --- a/app/tools/yt.py +++ b/app/tools/yt.py @@ -164,7 +164,7 @@ class PlayListParser(HTMLParser): ct = resp.get("contents", None) if ct: - for d in [(d.get("title", {}).get("simpleText", ""), + for d in [(d.get("title", {}).get("runs", [{}])[0].get("text", ""), d.get("videoId", "")) for d in flat("playlistVideoRenderer", ct)]: self._playlist.append(d) self._is_script = False