mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Fix comedy genre URL
This commit is contained in:
parent
6069fd02d3
commit
a4134d30fa
1 changed files with 3 additions and 1 deletions
|
@ -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"]
|
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
|
case genre
|
||||||
|
when "Comedy"
|
||||||
|
genre_url = "/channel/UCQZ43c4dAA9eXCQuXWu9aTw"
|
||||||
when "Education"
|
when "Education"
|
||||||
genre_url = "/channel/UCdxpofrI-dO6oYfsqHDHphw"
|
genre_url = "/channel/UCdxpofrI-dO6oYfsqHDHphw"
|
||||||
when "Gaming"
|
when "Gaming"
|
||||||
|
|
Loading…
Reference in a new issue