mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
Add back custom patch from samantaz
This commit is contained in:
@@ -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"]?
|
||||
|
||||
Reference in New Issue
Block a user