Use "str.startswith" instead of ugly hack
This commit is contained in:
		
							
								
								
									
										2
									
								
								morss.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								morss.py
									
									
									
									
									
								
							@@ -500,7 +500,7 @@ def Gather(url, cachePath, options):
 | 
			
		||||
		cache.set('etag', con.headers.getheader('etag'))
 | 
			
		||||
		cache.set('lastmodified', con.headers.getheader('last-modified'))
 | 
			
		||||
 | 
			
		||||
		if xml[:5] == '<?xml' or con.info().type in MIMETYPE['xml']:
 | 
			
		||||
		if xml.startswith('<?xml') or con.info().type in MIMETYPE['xml']:
 | 
			
		||||
			style = 'normal'
 | 
			
		||||
		elif feedify.supported(url):
 | 
			
		||||
			style = 'feedify'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user