2007-04-06, 07:49
progress today...
it took a bit of trial and error but i got a good start made on the socket programming, to produce a proper directory listing from the contents of an NZB file...
it works by downloading the header and first couple of lines for all of the articles referenced in the nzb file from the news server... this gives an accurate listing of the file names and file sizes as if it was a real directory.
Having dug into this a bit, its not necessary to sort the xml nzb... instead, on opening the nzb, the file names for all the parts are scanned into an array/vector so when a file within the nzb is requested in the nzb://smb://x.y.z/filename.ext the filename is matched against the nzb part from the array and that part is downloaded immediately
Im getting the feeling that seeking will be at least technically possible, if not relatively easy! We'll see; but this would be great to have presuming broken/incomplete posts will be an issue that will affect nzb support
it took a bit of trial and error but i got a good start made on the socket programming, to produce a proper directory listing from the contents of an NZB file...
it works by downloading the header and first couple of lines for all of the articles referenced in the nzb file from the news server... this gives an accurate listing of the file names and file sizes as if it was a real directory.
Having dug into this a bit, its not necessary to sort the xml nzb... instead, on opening the nzb, the file names for all the parts are scanned into an array/vector so when a file within the nzb is requested in the nzb://smb://x.y.z/filename.ext the filename is matched against the nzb part from the array and that part is downloaded immediately
Im getting the feeling that seeking will be at least technically possible, if not relatively easy! We'll see; but this would be great to have presuming broken/incomplete posts will be an issue that will affect nzb support