mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Miscelaneous fixes.
This commit is contained in:
parent
e67446b9bf
commit
7b2cf28f68
@ -288,7 +288,7 @@ class baseBufferController(bufferController):
|
|||||||
for i in self.session.db[self.name]:
|
for i in self.session.db[self.name]:
|
||||||
tweet = self.compose_function(i, self.session.db, self.session.settings["general"]["relative_times"])
|
tweet = self.compose_function(i, self.session.db, self.session.settings["general"]["relative_times"])
|
||||||
self.buffer.list.insert_item(False, *tweet)
|
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"])
|
self.buffer.set_position(self.session.settings["general"]["reverse_timelines"])
|
||||||
elif self.buffer.list.get_count() > 0:
|
elif self.buffer.list.get_count() > 0:
|
||||||
if self.session.settings["general"]["reverse_timelines"] == False:
|
if self.session.settings["general"]["reverse_timelines"] == False:
|
||||||
|
@ -54,7 +54,7 @@ def is_audio(tweet,force=False):
|
|||||||
except:
|
except:
|
||||||
log.exception("Exception while executing is_audio hashtag algorithm")
|
log.exception("Exception while executing is_audio hashtag algorithm")
|
||||||
try:
|
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):
|
for u in find_urls(tweet):
|
||||||
if url_is_audio(u):
|
if url_is_audio(u):
|
||||||
tweet['is_audio']=True
|
tweet['is_audio']=True
|
||||||
|
Loading…
Reference in New Issue
Block a user