diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-08-01 07:49:33 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-08-01 07:49:33 -0500 |
| commit | c41beae99a1b522de0d1dd2bda3e38ffd294d2c7 (patch) | |
| tree | 9ffb6bb39c370c8c229e7cdba441fc3d91cd946a /src | |
| parent | f71d5c429d4e3abc4e6a7eaf461fd46587316121 (diff) | |
| download | invidious-c41beae99a1b522de0d1dd2bda3e38ffd294d2c7.tar.gz invidious-c41beae99a1b522de0d1dd2bda3e38ffd294d2c7.tar.bz2 invidious-c41beae99a1b522de0d1dd2bda3e38ffd294d2c7.zip | |
Add fix for channels with empty descriptions
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/channels.cr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious/channels.cr b/src/invidious/channels.cr index 792ed288..5e01cef2 100644 --- a/src/invidious/channels.cr +++ b/src/invidious/channels.cr @@ -958,7 +958,8 @@ def get_about_info(ucid, locale) banner = nil 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" is_family_friendly = about.xpath_node(%q(//meta[@itemprop="isFamilyFriendly"])).not_nil!["content"] == "True" |
