From ccd79ae26a9e90b1dae17c30317d0dbe73e4489c Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 4 Mar 2020 19:45:03 +0100 Subject: [PATCH] Fix findlinks in caso di lista --- lib/unshortenit.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index fcd794ec..ae767b00 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -600,5 +600,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 \ No newline at end of file