From 21a8df42dd0427ce0cd1b1cdfbb7eb96e439fa02 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 25 Sep 2018 10:28:57 -0500 Subject: [PATCH] Add fix for short playlist descriptions --- src/invidious/playlists.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 48bfc1ef..326123b6 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -161,6 +161,7 @@ def fetch_playlist(plid) title = title.content.strip(" \n") description_html = document.xpath_node(%q(//span[@class="pl-header-description-text"]/div/div[1])) + description_html ||= document.xpath_node(%q(//span[@class="pl-header-description-text"])) description_html, description = html_to_content(description_html) anchor = document.xpath_node(%q(//ul[@class="pl-header-details"])).not_nil!