Invidious is an alternative front-end to YouTube
Fix genreUrl
Omar Roth38c7dda00ffc
diff --git a/src/invidious/videos.cr b/src/invidious/videos.crindex f2638f14..277c81f4 100644--- a/src/invidious/videos.cr+++ b/src/invidious/videos.cr@@ -721,8 +721,8 @@ struct Videoinfo["genre"]?.try &.as_s || ""end- def genre_url : String- info["genreUcid"]? ? "/channel/#{info["genreUcid"]}" : ""+ def genre_url : String?+ info["genreUcid"]? ? "/channel/#{info["genreUcid"]}" : nilenddef license : String?@@ -861,6 +861,9 @@ def extract_polymer_config(body).try &.["rows"]?.try &.as_a+ params["genre"] = params["microformat"]?.try &.["playerMicroformatRenderer"]?.try &.["category"]? || JSON::Any.new("")+ params["genreUrl"] = JSON::Any.new(nil)+metadata.try &.each do |row|title = row["metadataRowRenderer"]?.try &.["title"]?.try &.["simpleText"]?.try &.as_scontents = row["metadataRowRenderer"]?