diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 0f74b37ad..6e48bacff 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"]))