About: Remove the old sourceforge latest commit parser
authorlittlesat <littlesat99@yahoo.com>
Sat, 25 Jul 2015 10:05:03 +0000 (12:05 +0200)
committerlittlesat <littlesat99@yahoo.com>
Sat, 25 Jul 2015 10:05:03 +0000 (12:05 +0200)
lib/python/Screens/About.py

index 9729605..93f7ab2 100644 (file)
@@ -182,28 +182,6 @@ class CommitInfo(Screen):
                self.Timer.callback.append(self.readGithubCommitLogs)
                self.Timer.start(50, True)
 
-       def readCommitLogs(self):
-               url = 'http://sourceforge.net/p/openpli/%s/feed' % self.projects[self.project][0]
-               commitlog = ""
-               from urllib2 import urlopen
-               try:
-                       commitlog += 80 * '-' + '\n'
-                       commitlog += url.split('/')[-2] + '\n'
-                       commitlog += 80 * '-' + '\n'
-                       for x in  urlopen(url, timeout=5).read().split('<title>')[2:]:
-                               for y in x.split("><"):
-                                       if '</title' in y:
-                                               title = y[:-7]
-                                       if '</dc:creator' in y:
-                                               creator = y.split('>')[1].split('<')[0]
-                                       if '</pubDate' in y:
-                                               date = y.split('>')[1].split('<')[0][:-6]
-                               commitlog += date + ' ' + creator + '\n' + title + 2 * '\n'
-                       self.cachedProjects[self.projects[self.project][1]] = commitlog
-               except:
-                       commitlog = _("Currently the commit log cannot be retrieved - please try later again")
-               self["AboutScrollLabel"].setText(commitlog)
-
        def readGithubCommitLogs(self):
                url = 'https://api.github.com/repos/openpli/%s/commits' % self.projects[self.project][0]
                commitlog = ""