mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Add rescue for video ranking
This commit is contained in:
		| @@ -147,7 +147,11 @@ spawn do | ||||
|  | ||||
|     top.each do |id| | ||||
|       client = get_client(youtube_pool) | ||||
|       videos << get_video(id, client, PG_DB) | ||||
|       begin | ||||
|         videos << get_video(id, client, PG_DB) | ||||
|       rescue ex | ||||
|         STDOUT << Time.now << " : " << ex.message << "\n" | ||||
|       end | ||||
|       youtube_pool << client | ||||
|     end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth