mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-31 05:10:45 -06:00
A sound bugfix
This commit is contained in:
parent
1f96e71b63
commit
f76b86b24d
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user