mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
logging
This commit is contained in:
@@ -322,9 +322,10 @@ class VideoProcessor:
|
|||||||
for word in words:
|
for word in words:
|
||||||
# Try each extractor
|
# Try each extractor
|
||||||
for ie in ydl._ies:
|
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()
|
# Use regex pattern matching instead of suitable()
|
||||||
if re.match(ie._VALID_URL, word):
|
if re.match(ie._VALID_URL, word):
|
||||||
|
logger.info(f"Found supported URL: {word} (Extractor: {ie.IE_NAME})")
|
||||||
urls.append(word)
|
urls.append(word)
|
||||||
break # Stop once we find a matching pattern
|
break # Stop once we find a matching pattern
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user