summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious/videos.cr4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index b60fd4ed..46a028c9 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -1174,8 +1174,10 @@ def fetch_video(id, proxies, region)
genre_url = html.xpath_node(%(//ul[contains(@class, "watch-info-tag-list")]/li/a[text()="#{genre}"])).try &.["href"]
- # Sometimes YouTube tries to link to invalid/missing channels, so we fix that here
+ # YouTube provides invalid URLs for some genres, so we fix that here
case genre
+ when "Comedy"
+ genre_url = "/channel/UCQZ43c4dAA9eXCQuXWu9aTw"
when "Education"
genre_url = "/channel/UCdxpofrI-dO6oYfsqHDHphw"
when "Gaming"