From 4ae57cb475ef64730a13982f94f4810d901bc6b5 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 4 Jan 2019 22:48:00 -0600 Subject: [PATCH] Improve playlist description extractor --- src/invidious/playlists.cr | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 0f74b37a..6e48bacf 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -168,10 +168,7 @@ def fetch_playlist(plid, locale) raise translate(locale, "Invalid playlist.") end - body = response.body.gsub(%( - - ), "") + body = response.body.gsub(/]+>]+>\s*less\s*]+>\n<\/span><\/button>/, "") document = XML.parse_html(body) title = document.xpath_node(%q(//h1[@class="pl-header-title"]))