Fix findlinks in caso di lista

This commit is contained in:
Alhaziel
2020-03-04 19:45:03 +01:00
parent 5fbad3b614
commit 2935a9be4c

View File

@@ -596,5 +596,10 @@ def findlinks(text):
unshList = [executor.submit(unshorten, match) for match in matches]
for link in futures.as_completed(unshList):
if link.result()[0] not in matches:
text += '\n' + link.result()[0]
links = link.result()[0]
if type(links) == list:
for l in links:
text += '\n' + l
else:
text += '\n' + str(link.result()[0])
return text