From c3886f9dab1f6e198d989d446e4bc9a0a607a3c7 Mon Sep 17 00:00:00 2001 From: Mihail-Cosmin Munteanu Date: Thu, 10 Nov 2022 20:36:06 +0100 Subject: [PATCH] paste url validator --- src/widgets/left.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/left.py b/src/widgets/left.py index 669c379..bf4e0da 100644 --- a/src/widgets/left.py +++ b/src/widgets/left.py @@ -113,7 +113,7 @@ def _queue_right_click_menu(self, pos): for url in findall(single_url_regex, paste, V1): if "http" in url and "youtube" in url: self._add_current_url_to_queue(url) - elif "http" in url and "youtube" in url: + elif "http" in paste and "youtube" in paste: self._add_current_url_to_queue(paste) def _add_current_url_to_queue(self, url: str = None):