mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 09:37:25 +01:00 
			
		
		
		
	Web: Fix matching for youtube
This commit is contained in:
		
							parent
							
								
									21ea999e3c
								
							
						
					
					
						commit
						eb6fc932d9
					
				@ -151,7 +151,8 @@ class Web(callbacks.PluginRegexp):
 | 
			
		||||
        size = conf.supybot.protocols.http.peekSize()
 | 
			
		||||
 | 
			
		||||
        parsed_url = utils.web.urlparse(url)
 | 
			
		||||
        if parsed_url.netloc.endswith(('youtube.com', '.youtube.com')):
 | 
			
		||||
        if parsed_url.netloc == 'youtube.com' \
 | 
			
		||||
                or parsed_url.netloc.endswith(('.youtube.com')):
 | 
			
		||||
            # there is a lot of Javascript before the <title>
 | 
			
		||||
            size = 409600
 | 
			
		||||
        if parsed_url.netloc in ('reddit.com', 'www.reddit.com', 'new.reddit.com'):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user