From d75118659423311e60d995c15c17126b2bd97ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 18 Apr 2019 13:12:02 +0200 Subject: [PATCH] ...pt. 2 --- delojza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/delojza.py b/delojza.py index 5266b26..6cb88d7 100755 --- a/delojza.py +++ b/delojza.py @@ -173,8 +173,8 @@ class DelojzaBot: message.reply_text("Something is FUCKED: %s" % exc_value) def handle_url(self, _, update): - urls = map(lambda e: update.message.parse_entity(e), - filter(lambda e: e.type == 'url', update.message.entities)) + urls = list(map(lambda e: update.message.parse_entity(e), + filter(lambda e: e.type == 'url', update.message.entities))) ytdl_urls = [url for url in urls if self.ytdl_can(url)] normal_urls = [url for url in urls if not self.ytdl_can(url)] if len(ytdl_urls) > 0: