2005-05-05, 00:49
im new to python but i would like to fix something on this particular script.
the following section collects the infformation from thisparticular link:
http://cvs.sourceforge.net/viewcvs....=markup
the scrip has a section that retrieves it:
def get_data(self):
data = urllib.urlopen("[url]http://cvs.sourceforge.net/viewcvs.py/xbmc/xbmc/changelog.txt?view=markup"[/url])
self.data = data.read()
now the following section looks at the html code for that particular page and gets the date of the last update to the log:
def get_info(self):
reresult = re.search("revision: <b>.*</b>,\n<i>(.*) utc</i> \((.*)\ by <i>(.*)</i>", self.data, re.ignorecase )
result = "last updated " + reresult.group(2)
return result
now in xbmc all i see is last u... and nothing else, which leads me to believe that the statement above is not working.
does anybody have a few popinters on how to deal with this particular issue
the following section collects the infformation from thisparticular link:
http://cvs.sourceforge.net/viewcvs....=markup
the scrip has a section that retrieves it:
def get_data(self):
data = urllib.urlopen("[url]http://cvs.sourceforge.net/viewcvs.py/xbmc/xbmc/changelog.txt?view=markup"[/url])
self.data = data.read()
now the following section looks at the html code for that particular page and gets the date of the last update to the log:
def get_info(self):
reresult = re.search("revision: <b>.*</b>,\n<i>(.*) utc</i> \((.*)\ by <i>(.*)</i>", self.data, re.ignorecase )
result = "last updated " + reresult.group(2)
return result
now in xbmc all i see is last u... and nothing else, which leads me to believe that the statement above is not working.
does anybody have a few popinters on how to deal with this particular issue