To change the name to the current number (actually, it's a time stamp) I would need to have the system extract the nzb from the zip, rename it, then compress it into a zip again.
I could look into a way of renaming a file that already exists in a zip, when I get a chance.
Thanks for considering the suggestion.
If understand things right, the .nzb is named with a time stamp from when its uploaded, gets compressed and saved on the server, and then when a download is requested the .zip file is dynamically renamed with a time stamp of the current time and sent out. IE the script sends me rightnowtime.zip that includes whenuploaded.nzb. Is that how it works?
I wouldn't ask that you de- and recompress the file when a download is requested. That kind of server load would defeat the point of this tactic to conserve resources.
One thing I hadn't thought of until now: what about having the script, in addition to renaming the .zip itself when a download is requested, also do a small binary edit to the .zip header where the .nzb name is stored?
From just a quick check of the file format, it looks like you could rename the .nzb file on-the-fly by editing the .zip at 001E, and change it to the same time stamp as the .zip file name, without changing the rest of the compressed data.
At the least, that would help sort even uncompressed files by most recently downloaded, just like how the script used to work.
I bet it could done quite easily in PHP, though I don't know enough to suggest how. Just something to be think on. Like I said before, anything that improves retention is awesome, and I can live with a few changes.