A sound bugfix

This commit is contained in:
Manuel Cortez 2015-10-23 11:29:59 -05:00
parent 1f96e71b63
commit f76b86b24d
3 changed files with 5 additions and 5 deletions

View File

@ -1224,6 +1224,7 @@ class Controller(object):
buffer.add_new_item(data)
def manage_item_in_list(self, data, user, where):
print "I'm activated!"
buffer = self.search_buffer("%s" % (where,), user)
if buffer == None: return
play_sound = "tweet_timeline.ogg"

View File

@ -139,8 +139,8 @@ class URLStream(object):
log.debug("Stopped audio stream.")
except:
log.exception("Exception while stopping stream.")
# if delete:
# del self.stream
if delete:
del self.stream
log.debug("Deleted audio stream.")
return True
else:

View File

@ -46,12 +46,11 @@ class timelinesStreamer(TwythonStreamer):
for i in self.session.lists:
try:
i.users.index(data["user"]["id"])
print "Index in the list for the specified user: %d" % (i.users.index(data["user"]["id"]),)
# print "Index in the list for the specified user: %d" % (i.users.index(data["user"]["id"]),)
usr = data["in_reply_to_user_id"]
if (usr != None or usr in self.friends) or data.has_key("retweeted_status"):
print "I want test this"
data = self.session.check_quoted_status(data)
print data
# print data
if self.session.settings["general"]["reverse_timelines"] == False: self.session.db["%s" % (i.name,)].append(data)
else: self.session.db["%s" % (i,)].insert(0, data)
pub.sendMessage("item-in-list", data=data, user=self.session.db["user_name"], where=i.name)