mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-27 01:01:59 +05:30
Add fix for channels with empty descriptions
This commit is contained in:
parent
f71d5c429d
commit
c41beae99a
@ -958,7 +958,8 @@ def get_about_info(ucid, locale)
|
|||||||
banner = nil
|
banner = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
description_html = about.xpath_node(%q(//div[contains(@class,"about-description")])).try &.to_s || ""
|
description_html = about.xpath_node(%q(//div[contains(@class,"about-description")])).try &.to_s ||
|
||||||
|
%(<div class="about-description branded-page-box-padding"><pre></pre></div>)
|
||||||
|
|
||||||
paid = about.xpath_node(%q(//meta[@itemprop="paid"])).not_nil!["content"] == "True"
|
paid = about.xpath_node(%q(//meta[@itemprop="paid"])).not_nil!["content"] == "True"
|
||||||
is_family_friendly = about.xpath_node(%q(//meta[@itemprop="isFamilyFriendly"])).not_nil!["content"] == "True"
|
is_family_friendly = about.xpath_node(%q(//meta[@itemprop="isFamilyFriendly"])).not_nil!["content"] == "True"
|
||||||
|
Loading…
Reference in New Issue
Block a user