mirror of
				https://gitea.invidious.io/iv-org/invidious
				synced 2025-06-05 23:29:12 +02:00 
			
		
		
		
	Fix genreUrl
This commit is contained in:
		@@ -721,8 +721,8 @@ struct Video
 | 
			
		||||
    info["genre"]?.try &.as_s || ""
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def genre_url : String
 | 
			
		||||
    info["genreUcid"]? ? "/channel/#{info["genreUcid"]}" : ""
 | 
			
		||||
  def genre_url : String?
 | 
			
		||||
    info["genreUcid"]? ? "/channel/#{info["genreUcid"]}" : nil
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def 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_s
 | 
			
		||||
    contents = row["metadataRowRenderer"]?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user