watch-list catch
This commit is contained in:
parent
d1c45c095a
commit
599db630cd
@ -104,6 +104,11 @@ class ArgCtx:
|
|||||||
raise Explicit(
|
raise Explicit(
|
||||||
"expected url, got `+` or `-\"` or `-'`. maybe you forgot to separate control symbol from the effects?"
|
"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:
|
match args:
|
||||||
case ["-", effects, *args]:
|
case ["-", effects, *args]:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user