mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
Add context menu command for birthday role assignment. Users with allowed roles can now give birthday roles via right-click menu.
This commit is contained in:
@@ -293,7 +293,9 @@ class VideoProcessor:
|
||||
for word in words:
|
||||
# Try each extractor
|
||||
for ie in ydl._ies:
|
||||
if ie.suitable(word):
|
||||
# Use suitable as a classmethod and check the result
|
||||
result = ie.suitable(word)
|
||||
if result and not isinstance(result, str):
|
||||
urls.append(word)
|
||||
break # Stop once we find a matching extractor
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user