2006-05-14, 03:49
sourceforge changed servers and the log pages source has changed slightly.
replace the following three functions in class main:
replace the following three functions in class main:
Quote: def get_log(self):
reresult = re.search("added/fixed: \(dd-mm-yyyy\) \(please specify date in cet\)\n(.*)</pre>", self.data, re.dotall | re.ignorecase )
changelog = reresult.group(1)
temp = changelog.splitlines(true)
prefinal = ""
for x in range(listrange):
prefinal = prefinal + temp[x]
final = prefinal.replace(" - ", '')
final = final.replace("<", '<')
final = final.replace(">", '>')
final = final.replace("&", '&')
final = final.replace(""", '"')
return final
def get_data(self):
data = urllib.urlopen("http://xbmc.cvs.sourceforge.net/xbmc/xbmc/changelog.txt?view=markup")
self.data = data.read()
def get_info(self):
reresult = re.search("<br /><em>(.*)</em>", self.data, re.ignorecase )
result = reresult.group(1)
return result