Twitter: re-enable timeline polling and display
this was commented out for no reason, it can be disabled simply by unsetting output_channel
This commit is contained in:
parent
7322ebde8f
commit
ccbea5ecdb
@ -322,16 +322,14 @@ class Twitter(Module):
|
|||||||
output_channel = self._get_output_channel()
|
output_channel = self._get_output_channel()
|
||||||
|
|
||||||
if since_id is not None and output_channel != '':
|
if since_id is not None and output_channel != '':
|
||||||
# TODO: make this an option in the settings, just
|
tweets = self.twit.GetFriendsTimeline(since_id=since_id)
|
||||||
# disabled in code for now
|
tweets.reverse()
|
||||||
#tweets = self.twit.GetFriendsTimeline(since_id=since_id)
|
for tweet in tweets:
|
||||||
#tweets.reverse()
|
tweet_text = self._return_tweet_or_retweet_text(tweet=tweet, print_source=True)
|
||||||
#for tweet in tweets:
|
self.sendmsg(output_channel.encode('utf-8', 'ignore'), tweet_text)
|
||||||
# tweet_text = self._return_tweet_or_retweet_text(tweet=tweet, print_source=True)
|
|
||||||
# self.sendmsg(output_channel.encode('utf-8', 'ignore'), tweet_text)
|
# friends timeline printed, find the latest id
|
||||||
#
|
new_since_id = self._get_latest_tweet_id(tweets, since_id)
|
||||||
## friends timeline printed, find the latest id
|
|
||||||
#new_since_id = self._get_latest_tweet_id(tweets, since_id)
|
|
||||||
|
|
||||||
tweets = self.twit.GetMentions(since_id=since_id)
|
tweets = self.twit.GetMentions(since_id=since_id)
|
||||||
tweets.reverse()
|
tweets.reverse()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user