From: Andrew Ruthven Date: Mon, 22 Jun 2009 10:38:30 +0000 (+1200) Subject: Twitter has changed from Atom to RSS. X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10f1fff0e467232f62ce873577c9c4358c99676;p=whoisi.git Twitter has changed from Atom to RSS. --- diff --git a/services/command/twitter.py b/services/command/twitter.py index e3fdd1c..305080d 100644 --- a/services/command/twitter.py +++ b/services/command/twitter.py @@ -39,7 +39,7 @@ class Twitter: def getPreferredFeed(self, feeds): for i in range(0, len(feeds)): - if feeds[i][1] == u'application/atom+xml' and re.match('http://twitter.com/statuses/user_timeline/', feeds[i][0]): + if feeds[i][1] == u'application/rss+xml' and re.match('http://twitter.com/statuses/user_timeline/', feeds[i][0]): print(" Found preferred feed at %s" % feeds[i][0]) return feeds[i]