Miscelaneous fixes.

This commit is contained in:
Bill Dengler 2015-05-12 20:38:40 -04:00
parent e67446b9bf
commit 7b2cf28f68
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ class baseBufferController(bufferController):
for i in self.session.db[self.name]:
tweet = self.compose_function(i, self.session.db, self.session.settings["general"]["relative_times"])
self.buffer.list.insert_item(False, *tweet)
call_threaded(utils.is_audio,tweet)
# call_threaded(utils.is_audio,tweet)
self.buffer.set_position(self.session.settings["general"]["reverse_timelines"])
elif self.buffer.list.get_count() > 0:
if self.session.settings["general"]["reverse_timelines"] == False:

View File

@ -54,7 +54,7 @@ def is_audio(tweet,force=False):
except:
log.exception("Exception while executing is_audio hashtag algorithm")
try:
if config.app['app-settings']['use_modern_audio_algo']:
if config.app["app-settings"]["use_modern_audio_algo"]:
for u in find_urls(tweet):
if url_is_audio(u):
tweet['is_audio']=True