mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-03 21:58:29 -06:00 
			
		
		
		
	Fix channel playlists for genre channels
This commit is contained in:
		
							parent
							
								
									b1465c782b
								
							
						
					
					
						commit
						e3088ebd9d
					
				@ -533,8 +533,17 @@ def extract_channel_playlists_cursor(url, auto_generated)
 | 
				
			|||||||
    .try { |i| Base64.decode(i) }
 | 
					    .try { |i| Base64.decode(i) }
 | 
				
			||||||
    .try { |i| IO::Memory.new(i) }
 | 
					    .try { |i| IO::Memory.new(i) }
 | 
				
			||||||
    .try { |i| Protodec::Any.parse(i) }
 | 
					    .try { |i| Protodec::Any.parse(i) }
 | 
				
			||||||
    .try { |i| i["80226972:0:embedded"]["3:1:base64"].as_h.find { |k, v| k.starts_with?("15:") } }
 | 
					    .try { |i| i["80226972:0:embedded"]["3:1:base64"].as_h.find { |k, v| k.starts_with? "15:" } }
 | 
				
			||||||
    .try &.[1].as_s || ""
 | 
					    .try &.[1]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if cursor.try &.as_h?
 | 
				
			||||||
 | 
					    cursor = cursor.try { |i| Protodec::Any.cast_json(i.as_h) }
 | 
				
			||||||
 | 
					      .try { |i| Protodec::Any.from_json(i) }
 | 
				
			||||||
 | 
					      .try { |i| Base64.urlsafe_encode(i) }
 | 
				
			||||||
 | 
					      .try { |i| URI.encode_www_form(i) } || ""
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					    cursor = cursor.try &.as_s || ""
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if !auto_generated
 | 
					  if !auto_generated
 | 
				
			||||||
    cursor = URI.decode_www_form(cursor)
 | 
					    cursor = URI.decode_www_form(cursor)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user