]> git.etc.gen.nz Git - whoisi.git/commitdiff
Twitter has changed from Atom to RSS.
authorAndrew Ruthven <andrew@etc.gen.nz>
Mon, 22 Jun 2009 10:38:30 +0000 (22:38 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Mon, 22 Jun 2009 10:38:30 +0000 (22:38 +1200)
services/command/twitter.py

index e3fdd1cb53be9d321ffcb1ce1049acb5f89a4277..305080db630832cba9ccab8043a786ca716c1afd 100644 (file)
@@ -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]