euscan: don't get robots.txt on ftp
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
		@@ -217,6 +217,9 @@ def urlallowed(url):
 | 
			
		||||
 | 
			
		||||
    protocol, domain = urlparse.urlparse(url)[:2]
 | 
			
		||||
 | 
			
		||||
    if 'protocol' == 'ftp':
 | 
			
		||||
        return True
 | 
			
		||||
 | 
			
		||||
    baseurl = '%s://%s' % (protocol, domain)
 | 
			
		||||
    robotsurl = urlparse.urljoin(baseurl, 'robots.txt')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user