Browse Source

Slightly less specific NZB matching

Zachary Kotlarek 9 years ago
parent
commit
a23c6b762f
1 changed files with 1 additions and 1 deletions
  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
 	fi
 
 
 # Use NZBGet if the URL is an NZB file
 # 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
 	if curl -k --silent --max-time "${TIMEOUT}" "${NZB_URL}" | grep -q 'version'; then
 		IFS=$'\n'
 		IFS=$'\n'
 		SLEEP=0
 		SLEEP=0