diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-25 10:28:57 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-25 10:28:57 -0500 |
| commit | 21a8df42dd0427ce0cd1b1cdfbb7eb96e439fa02 (patch) | |
| tree | b096177705093f715abefa00f6b9aec47e2926c9 | |
| parent | 74b285d0f76bf07bf51132afde8fbede94e24c0e (diff) | |
| download | invidious-21a8df42dd0427ce0cd1b1cdfbb7eb96e439fa02.tar.gz invidious-21a8df42dd0427ce0cd1b1cdfbb7eb96e439fa02.tar.bz2 invidious-21a8df42dd0427ce0cd1b1cdfbb7eb96e439fa02.zip | |
Add fix for short playlist descriptions
| -rw-r--r-- | src/invidious/playlists.cr | 1 |
1 files changed, 1 insertions, 0 deletions
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! |
