mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 09:45:24 -04:00
fix: is_youtube_url (services) crashes on a non-string url (#1753)
This commit is contained in:
@@ -59,6 +59,8 @@ def init_youtube():
|
||||
|
||||
|
||||
def is_youtube_url(url: str) -> bool:
|
||||
if not isinstance(url, str):
|
||||
return False
|
||||
return "youtube.com" in url or "youtu.be" in url
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user