|
|
|
@ -604,10 +604,15 @@ def fetch_video(id, proxies)
|
|
|
|
|
|
|
|
|
|
genre = html.xpath_node(%q(//meta[@itemprop="genre"])).not_nil!["content"]
|
|
|
|
|
genre_url = html.xpath_node(%(//a[text()="#{genre}"])).try &.["href"]
|
|
|
|
|
if genre == "Movies"
|
|
|
|
|
genre_url ||= "/channel/UClgRkhTL3_hImCAmdLfDE4g"
|
|
|
|
|
end
|
|
|
|
|
case genre
|
|
|
|
|
when "Movies"
|
|
|
|
|
genre_url = "/channel/UClgRkhTL3_hImCAmdLfDE4g"
|
|
|
|
|
when "Education"
|
|
|
|
|
# Education channel is linked but does not exist
|
|
|
|
|
# genre_url = "/channel/UC3yA8nDwraeOfnYfBWun83g"
|
|
|
|
|
genre_url = ""
|
|
|
|
|
end
|
|
|
|
|
genre_url ||= ""
|
|
|
|
|
|
|
|
|
|
license = html.xpath_node(%q(//h4[contains(text(),"License")]/parent::*/ul/li))
|
|
|
|
|
if license
|
|
|
|
|