esac
 done
 
+# set priority to high
+extra_data=(-F priority=1)
 if [[ -n $category ]]; then
-    extra_data="-F cat=$category"
+    extra_data+=(-F cat=$category)
 fi
 
 for f in ${args[@]}; do
-    curl -s -F apikey="$API_KEY" -F mode="addfile" -F name=@"$f" $extra_data $URL/sabnzbd/api &> /dev/null
+    curl --silent --show-error \
+        $URL/sabnzbd/api \
+        -F apikey="$API_KEY" \
+        -F mode="addfile" \
+        -F name="@$f" \
+        "${extra_data[@]}"
     if [[ $? -eq 0 ]]; then
+        echo "Uploaded '$f'"
         rm $f
     else
         echo "Failed to upload '$f'"