mbruel / nzbCheck

command line tool to check nzb files. First inside the nzb to see if each files has the expected number of Articles, then we check their availability on Usenet using the NNTP Stat command. Implemented in C++11/Qt5, nzbCheck is released for Linux, Windows, MacOS and RPI.
GNU Affero General Public License v3.0
22 stars 4 forks source link

Feature request: automatically nzb folder by iterating #1

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

could you please implement a function/parameter that automatically checks nzb folders by iteration?

Thanks!

mbruel commented 4 years ago

Hi, I don't really have time for that and I don't really see the need... a batch or shell script can do it for you. tools are not made to do everything by themself but to get combined to make everything possible ;) The important thing is to provide a "good API". nzbCheck is returning (exit code) the number of missing Articles. This is more than enough for other tools to exploit its result.

ghost commented 4 years ago

Ah ok thanks I understand.

mbruel commented 4 years ago

@noobcoder1983

#!/bin/bash
for i in *.nzb
do
  nzbcheck --progress -S "user:pass@@@servidor1.com:563:40:ssl" -S "user:pass@@@servidor2.com:563:40:ssl" -i "$i"
done

==================
or for windows:

@echo off
for %%I in (*.nzb) do nzbcheck --progress -S "user:pass@@@servidor1.com:563:40:ssl" -S "user:pass@@@servidor2.com:563:40:ssl" -i "%%I"
pause
ghost commented 4 years ago

Thanks for help, it works! :-)