Log cache hash in Gather
This commit is contained in:
		
							
								
								
									
										4
									
								
								morss.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								morss.py
									
									
									
									
									
								
							@@ -124,8 +124,6 @@ class Cache:
 | 
				
			|||||||
					key, bdata = line.split("\t", 1)
 | 
										key, bdata = line.split("\t", 1)
 | 
				
			||||||
					self._cached[key] = bdata
 | 
										self._cached[key] = bdata
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		log(self._hash)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	def __del__(self):
 | 
						def __del__(self):
 | 
				
			||||||
		self.save()
 | 
							self.save()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -369,6 +367,8 @@ def Gather(url, cachePath, progress=False):
 | 
				
			|||||||
	url = url.replace(' ', '%20')
 | 
						url = url.replace(' ', '%20')
 | 
				
			||||||
	cache = Cache(cachePath, url)
 | 
						cache = Cache(cachePath, url)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						log(cache._hash)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# fetch feed
 | 
						# fetch feed
 | 
				
			||||||
	if cache.isYoungerThan(DELAY):
 | 
						if cache.isYoungerThan(DELAY):
 | 
				
			||||||
		if 'xml' in cache:
 | 
							if 'xml' in cache:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user