Skip to content

Hardlinking while direct rename#614

Merged
dnzbk merged 22 commits intonzbgetcom:developfrom
lordload:feature/hardlinking
Dec 17, 2025
Merged

Hardlinking while direct rename#614
dnzbk merged 22 commits intonzbgetcom:developfrom
lordload:feature/hardlinking

Conversation

@lordload
Copy link
Copy Markdown
Contributor

@lordload lordload commented Jul 9, 2025

Description

Direct rename does not rename in-progress (.out.tmp) files. One solution is to create hardlinks to the .out.tmp-files.
The resulting file structure can then be used with streaming software, like jellyfin or plex.

@dnzbk dnzbk linked an issue Jul 9, 2025 that may be closed by this pull request
1 task
@dnzbk dnzbk self-requested a review July 9, 2025 12:10
@lordload
Copy link
Copy Markdown
Contributor Author

@dnzbk You can improve my code if you want. My C++ skills are not the best.

@lordload
Copy link
Copy Markdown
Contributor Author

lordload commented Aug 4, 2025

@dnzbk Thanks for your hints.

I have added two options in the settings:
Bildschirmfoto 2025-08-04 um 19 53 18

It would be nice, if you can test it and approve it.
If you still need a nzb file for testing, you can write me on Discord.

@sorryusernameisalreadytaken
Copy link
Copy Markdown

Wow, that looks great! I checked out the fork yesterday and tested various NZB types:
WinRAR with parts, WinRAR with parts but without repairing parts, 7z.00X and direct media files ("new standard").

So far, it looks very good, so a huge thanks in advance @lordload 👍🏼

The setting to separate this is much better, so everyone can turn this option on or off.

Does excluding the archive formats improve the process? In my testing I leave the pre-defined archives but this was just a question I had.

@dnzbk do you have time to look into this? I would be very happy to see this in a release.

@dnzbk
Copy link
Copy Markdown
Collaborator

dnzbk commented Aug 8, 2025

I’ll take a look and test this as soon as I can. I’m also interested in the Windows implementation. Like I said before, CreateHardLinkW might work. Just keep in mind it’s NTFS-only, so that should be mentioned in the HardLinking option description.

@dnzbk dnzbk self-requested a review August 11, 2025 18:20
@lordload
Copy link
Copy Markdown
Contributor Author

@dnzbk I added the windows implementation. I tested it and it works perfectly.
I also added error messages for hardlinking so that the user is informed if something goes wrong.

@dnzbk
Copy link
Copy Markdown
Collaborator

dnzbk commented Aug 28, 2025

@lordload I'll test it asap, thank you.

@sorryusernameisalreadytaken
Copy link
Copy Markdown

I took the time to find a Windows environment where I could test it. It works wonderfully. Thank you very much.

@dnzbk
Is there a way to see this in the official release, or are there still some inconsistencies?

If there is anything else I can help with, please feel free to write it here.

@dnzbk dnzbk self-requested a review October 9, 2025 12:07
@dnzbk
Copy link
Copy Markdown
Collaborator

dnzbk commented Oct 9, 2025

@sorryusernameisalreadytaken
Thanks for testing and confirming that this feature works as expected.
I’m planning to include that to the next release (v25.5 or v26.0).

@dnzbk dnzbk merged commit 0152183 into nzbgetcom:develop Dec 17, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Final Filename Instead of .out.tmp During DirectWrite Downloads

3 participants