mirror of
				https://github.com/benbusby/whoogle-search.git
				synced 2025-11-03 19:18:23 -05:00 
			
		
		
		
	Don't prepend to services that have schemes with '//' (#925)
This commit is contained in:
		
							parent
							
								
									2827a4ef47
								
							
						
					
					
						commit
						cec10e81d3
					
				@ -171,7 +171,10 @@ def get_site_alt(link: str) -> str:
 | 
				
			|||||||
            link = '//'.join(link.split('//')[1:])
 | 
					            link = '//'.join(link.split('//')[1:])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for prefix in SKIP_PREFIX:
 | 
					        for prefix in SKIP_PREFIX:
 | 
				
			||||||
            link = link.replace(prefix, '//')
 | 
					            if parsed_alt.scheme:
 | 
				
			||||||
 | 
					                link = link.replace(prefix, '')
 | 
				
			||||||
 | 
					            else:
 | 
				
			||||||
 | 
					                link = link.replace(prefix, '//')
 | 
				
			||||||
        break
 | 
					        break
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return link
 | 
					    return link
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user