mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Add error for non-existent playlists
This commit is contained in:
		| @@ -153,8 +153,11 @@ def fetch_playlist(plid) | ||||
|   , "") | ||||
|   document = XML.parse_html(body) | ||||
|  | ||||
|   title = document.xpath_node(%q(//h1[@class="pl-header-title"])).not_nil!.content | ||||
|   title = title.strip(" \n") | ||||
|   title = document.xpath_node(%q(//h1[@class="pl-header-title"])) | ||||
|   if !title | ||||
|     raise "Playlist does not exist." | ||||
|   end | ||||
|   title = title.content.strip(" \n") | ||||
|  | ||||
|   description_html = document.xpath_node(%q(//span[@class="pl-header-description-text"]/div/div[1])) | ||||
|   description_html, description = html_to_content(description_html) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth