Explorar o código

Slightly less specific NZB matching

Zachary Kotlarek %!s(int64=9) %!d(string=hai) anos
pai
achega
a23c6b762f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      download.sh

+ 1 - 1
download.sh

@@ -48,7 +48,7 @@ if [ -n "${TRANS_URL}" ] && echo "${URLS}" | head -n 1 | grep -Eqi '^magnet:'; t
 	fi
 
 # Use NZBGet if the URL is an NZB file
-elif [ -n "${NZB_URL}" ] && echo "${URLS}" | head -n 1 | grep -Eqi '\/(getnzb\/|api\?t\=get\&id\=)'; then
+elif [ -n "${NZB_URL}" ] && echo "${URLS}" | head -n 1 | grep -Eqi '\/(getnzb\/|api\?t\=get\&)'; then
 	if curl -k --silent --max-time "${TIMEOUT}" "${NZB_URL}" | grep -q 'version'; then
 		IFS=$'\n'
 		SLEEP=0