mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[pylint] engines/invidious.py
Fix remarks from pylint and remove usless comments Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									e2ec6b4211
								
							
						
					
					
						commit
						b35ef9789b
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -1,12 +1,12 @@
 | 
			
		|||
# SPDX-License-Identifier: AGPL-3.0-or-later
 | 
			
		||||
"""
 | 
			
		||||
 Invidious (Videos)
 | 
			
		||||
# lint: pylint
 | 
			
		||||
"""Invidious (Videos)
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
from urllib.parse import quote_plus
 | 
			
		||||
from dateutil import parser
 | 
			
		||||
import time
 | 
			
		||||
import random
 | 
			
		||||
from urllib.parse import quote_plus
 | 
			
		||||
from dateutil import parser
 | 
			
		||||
 | 
			
		||||
# about
 | 
			
		||||
about = {
 | 
			
		||||
| 
						 | 
				
			
			@ -27,7 +27,6 @@ time_range_support = True
 | 
			
		|||
base_url = 'https://vid.puffyan.us'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# do search-request
 | 
			
		||||
def request(query, params):
 | 
			
		||||
    time_range_dict = {
 | 
			
		||||
        "day": "today",
 | 
			
		||||
| 
						 | 
				
			
			@ -55,7 +54,6 @@ def request(query, params):
 | 
			
		|||
    return params
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# get response from search-request
 | 
			
		||||
def response(resp):
 | 
			
		||||
    results = []
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue