From 5a356f48240b3c0d1f4b82afb537aee5be889e8c Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 15 Nov 2024 02:54:09 +0000 Subject: [PATCH] logging --- videoarchiver/processor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/videoarchiver/processor.py b/videoarchiver/processor.py index 15cd7fa..1b49f71 100644 --- a/videoarchiver/processor.py +++ b/videoarchiver/processor.py @@ -322,9 +322,10 @@ class VideoProcessor: for word in words: # Try each extractor for ie in ydl._ies: - if hasattr(ie, "_VALID_URL") and ie._VALID_URL: + if hasattr(ie, '_VALID_URL') and ie._VALID_URL: # Use regex pattern matching instead of suitable() if re.match(ie._VALID_URL, word): + logger.info(f"Found supported URL: {word} (Extractor: {ie.IE_NAME})") urls.append(word) break # Stop once we find a matching pattern except Exception as e: