mirror of
				https://github.com/MCV-Software/TWBlue.git
				synced 2025-10-31 04:12:00 +00:00 
			
		
		
		
	A sound bugfix
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user