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:
pacnpal
2024-11-15 01:36:19 +00:00
parent 826f5e1b3e
commit 8822c85b6f
3 changed files with 10 additions and 8 deletions

View File

@@ -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: