watch-list catch

This commit is contained in:
AF 2023-06-22 16:41:10 +00:00
parent d1c45c095a
commit 599db630cd

View File

@ -104,6 +104,11 @@ class ArgCtx:
raise Explicit(
"expected url, got `+` or `-\"` or `-'`. maybe you forgot to separate control symbol from the effects?"
)
if 'youtu' in url and 'watch' in url and 'list' in url:
raise Explicit(
"bot cannot decide how to handle an URL with both `watch` and `list` in it.\n"
"instead, use either `youtube.com/watch` URL without `&list=` part or `youtube.com/playlist` URL."
)
match args:
case ["-", effects, *args]:
pass