mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Made algo option application-wide, setting should actually work now.
This commit is contained in:
@@ -50,11 +50,11 @@ def is_audio(tweet,force=False):
|
||||
if i["text"] == "audio":
|
||||
tweet['is_audio']=True
|
||||
return True
|
||||
#implement conditional.
|
||||
for u in find_urls(tweet):
|
||||
if url_is_audio(u):
|
||||
tweet['is_audio']=True
|
||||
return True
|
||||
if config.app['app-settings']['use_modern_audio_algo']:
|
||||
for u in find_urls(tweet):
|
||||
if url_is_audio(u):
|
||||
tweet['is_audio']=True
|
||||
return True
|
||||
tweet['is_audio']=False
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user