Added support in update_windows for 'user:' and #search_term... no way to actually search by these yet

This commit is contained in:
Anna 2010-04-12 17:27:15 -04:00
parent 7f287e1681
commit 2c9bd993b6

View File

@ -87,6 +87,10 @@ class MyTwitter():
statuses = self.api.GetHomeTimeline(count=self.num_entries)
elif list_name == '@' + self.username:
statuses = self.api.GetMentions(count=self.num_entries)
elif re.search('user: ', list_name):
statuses = self.api.GetUserTimeline(re.sub('^user: ', '', list_name), count=self.num_entries)
elif re.search('#', list_name):
statuses = self.api.Search(list_name, rpp=self.num_entries)
else:
statuses = self.api.GetListStatuses(list_name, per_page=self.num_entries)