From 753fb0b5e2a8f25bfd33893c7af17455eded548d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Mon, 6 Dec 2021 14:01:36 +0000 Subject: [PATCH] Add back custom patch from samantaz --- patches/custom-patch-samantaz.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/custom-patch-samantaz.patch diff --git a/patches/custom-patch-samantaz.patch b/patches/custom-patch-samantaz.patch new file mode 100644 index 0000000..47ecb65 --- /dev/null +++ b/patches/custom-patch-samantaz.patch @@ -0,0 +1,13 @@ +diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr +index f68dc3b0..acf66303 100644 +--- a/src/invidious/playlists.cr ++++ b/src/invidious/playlists.cr +@@ -346,7 +346,7 @@ def fetch_playlist(plid, locale) + playlist_info = playlist_sidebar_renderer[0]["playlistSidebarPrimaryInfoRenderer"]? + raise InfoException.new("Could not extract playlist info") if !playlist_info + +- title = playlist_info["title"]?.try &.["runs"][0]?.try &.["text"]?.try &.as_s || "" ++ title = playlist_info.dig?("title", "runs", 0, "text").try &.as_s || "" + + desc_item = playlist_info["description"]? +