~q3cpma/mangadex-tools

71b5a527251ae13a7563d598e0ebbc2943197f85 — q3cpma a month ago a76b1d2
Be more lenient in accepting manga URLs in mdex_dl
1 files changed, 1 insertions(+), 1 deletions(-)

M mdex_dl.tcl
M mdex_dl.tcl => mdex_dl.tcl +1 -1
@@ 31,7 31,7 @@ if {$proxy ne ""} {
	set ::env(https_proxy) $proxy
}

if {[regexp "^$URL_BASE_RE/title/($UUID_RE)(?:/\[a-z-\]+)?\$" [lindex $argv 0] -> mid]} {
if {[regexp "^$URL_BASE_RE/title/($UUID_RE)(?:/\[^/\]+)?\$" [lindex $argv 0] -> mid]} {
	if {$argc > 1 && [lindex $argv 1] eq "covers"} {
		dl_covers $mid $lang [lrange $argv 2 end]
		exit