mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Add fix for short playlist descriptions
This commit is contained in:
parent
74b285d0f7
commit
21a8df42dd
1 changed files with 1 additions and 0 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue