mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Fixed #34
This commit is contained in:
parent
6f88e08811
commit
0845553047
@ -46,6 +46,10 @@ def is_audio(tweet,force=False):
|
||||
if force == False and 'is_audio' in tweet:
|
||||
return tweet['is_audio']
|
||||
try:
|
||||
if len(find_urls(tweet)) < 1:
|
||||
tweet['is_audio']=False
|
||||
return False
|
||||
|
||||
if len(tweet["entities"]["hashtags"]) > 0:
|
||||
for i in tweet["entities"]["hashtags"]:
|
||||
if i["text"] == "audio":
|
||||
|
Loading…
Reference in New Issue
Block a user