mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 20:51:56 +00:00 
			
		
		
		
	Use dig?() for playlist title
This commit is contained in:
		| @@ -352,7 +352,7 @@ def fetch_playlist(plid, locale) | ||||
|   playlist_info = playlist_sidebar_renderer[0]["playlistSidebarPrimaryInfoRenderer"]? | ||||
|   raise InfoException.new("Could not extract playlist info") if !playlist_info | ||||
|  | ||||
|   title = playlist_info["title"]?.try &.["runs"][0]?.try &.["text"]?.try &.as_s || "" | ||||
|   title = playlist_info.dig?("title", "runs", 0, "text").try &.as_s || "" | ||||
|  | ||||
|   desc_item = playlist_info["description"]? | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Samantaz Fox
					Samantaz Fox