Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sort inner files for optimal download order #364
When nzb-file is added to queue the files listed within nzb can be in a random order. To ensure download of archive parts in correct order the files must reordered (alphabetically).
This feature is a prerequisite for unpack during downloading which is the ultimate goal.
Even without advanced unpack the sorting of inner files have another usage: when archive files come in sorted order it is possible to start watching of video file directly from archive (when using video players supporting playback from archives).
When direct renaming is active (#362) the sorting must be done again after the correct file names become known.