Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > b814039a8333a0f9b9cdeb3106bca23f > files > 2

metagoofil-1.4b-1.fc13.src.rpm

diff -ru metagoofil/metagoofil.py metagoofil.new/metagoofil.py
--- metagoofil/metagoofil.py	2010-08-15 21:07:15.000000000 +0200
+++ metagoofil.new/metagoofil.py	2010-08-15 20:50:20.000000000 +0200
@@ -153,14 +153,17 @@
 	 h.endheaders()
 	 returncode, returnmsg, headers = h.getreply()
 	 data=h.getfile().read()
-	 r1 = re.compile('About [0123456789,]* results')
+	 #r1 = re.compile('About *[0123456789,]* results')
+	 r1 = re.compile('resultStats>[a-zA-Z ]*[0123456789,]* results')
 	 result = r1.findall(data)
 	 if result ==[]:
-	    r1 = re.compile('About [0123456789,]* results')
+	    #r1 = re.compile('About [0123456789,]* results')
+	    r1 = re.compile('resultStats>[a-zA-Z ]*[0123456789,]* results')
 	    result = r1.findall(data)
 	 for x in result:
 	 	clean = re.sub(' <b>','',x)
 		clean = re.sub('</b> ','',clean)
+		clean = re.sub('resultStats>','',clean)
 		clean = re.sub('About','',clean)
 		clean = re.sub('results','',clean)
 		clean = re.sub(',','',clean)