nzbget / nzbget

Efficient Usenet Downloader
https://nzbget.net
GNU General Public License v2.0
1.22k stars 197 forks source link

Supply whole path for saved NZB in extension environment variables #231

Closed hashworks closed 8 years ago

hashworks commented 8 years ago

Currently one only gets a few informations about the saved NZB file:

[NZBPP_NZBNAME] => 15ce52d0bc0dfab710fe9925c033a1ba (1)
[NZBPP_NZBFILENAME] => 15ce52d0bc0dfab710fe9925c033a1ba (1).nzb
[NZBPR__UNPACK_PASSWORD] => 543rrjflkf4.fd;
[NZBOP_NZBDIR] => /var/lib/nzbget/destination/NZBs

However the actual NZB path is: /var/lib/nzbget/destination/NZBs/15ce52d0bc0dfab710fe9925c033a1ba{{543rrjflkf4.fd;}} (1).nzb.queued

This gets even worse when I download the NZB again and change the title and the password:

[NZBPP_NZBNAME] => testtesttest
[NZBPP_NZBFILENAME] => 15ce52d0bc0dfab710fe9925c033a1ba (1).nzb
[NZBPR__UNPACK_PASSWORD] => testpw

Final path: /var/lib/nzbget/destination/NZBs/15ce52d0bc0dfab710fe9925c033a1ba{{543rrjflkf4.fd;}} (1).nzb.2.queued

No way one can guess this.

hugbug commented 8 years ago

May I ask why you need this info?

hashworks commented 8 years ago

@hugbug I'm in a private Newznab community. This community requires constant NZB file uploads from their members. This is easy when you have an extension for your download client that uploads all sucessfully downloaded NZB files. I had such a plugin for SABnzbd, but not for nzbget.

hugbug commented 8 years ago

Thanks for the explanation. I'll add the field to pp-scripts and queue-scripts.

nomandera commented 2 years ago

This should probably be documented:

https://nzbget.net/post-processing-scripts or https://nzbget.net/queue-scripts