mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [telegram module] fix tagging
This commit is contained in:
parent
daf534d74b
commit
013f32c7d1
1 changed files with 9 additions and 3 deletions
|
@ -118,8 +118,12 @@ def search_telegram(item_id, item_date, item_content):
|
||||||
else:
|
else:
|
||||||
signal.alarm(0)
|
signal.alarm(0)
|
||||||
|
|
||||||
|
invite_code_found = False
|
||||||
|
|
||||||
for telegram_link in telegram_links:
|
for telegram_link in telegram_links:
|
||||||
res_0 = extract_data_from_telegram_url(item_id, item_date, telegram_link[0], telegram_link[1])
|
res = extract_data_from_telegram_url(item_id, item_date, telegram_link[0], telegram_link[1])
|
||||||
|
if res;
|
||||||
|
invite_code_found = True
|
||||||
|
|
||||||
# tg links
|
# tg links
|
||||||
signal.alarm(max_execution_time)
|
signal.alarm(max_execution_time)
|
||||||
|
@ -133,9 +137,11 @@ def search_telegram(item_id, item_date, item_content):
|
||||||
signal.alarm(0)
|
signal.alarm(0)
|
||||||
|
|
||||||
for tg_link in tg_links:
|
for tg_link in tg_links:
|
||||||
res_1 = extract_data_from_tg_url(item_id, item_date, tg_link)
|
res = extract_data_from_tg_url(item_id, item_date, tg_link)
|
||||||
|
if res;
|
||||||
|
invite_code_found = True
|
||||||
|
|
||||||
if res_0 or res_1:
|
if invite_code_found:
|
||||||
#tags
|
#tags
|
||||||
msg = 'infoleak:automatic-detection="telegram-invite-hash";{}'.format(item_id)
|
msg = 'infoleak:automatic-detection="telegram-invite-hash";{}'.format(item_id)
|
||||||
p.populate_set_out(msg, 'Tags')
|
p.populate_set_out(msg, 'Tags')
|
||||||
|
|
Loading…
Reference in a new issue