Page 1 of 1

[Feature Request] option to place an .ignore file in desstination folder

Posted: 12 Dec 2018, 09:33
by silhouette
Sorry if I missed this.

It would be great if there was an option to place one or more files into the destination folders while NzbGet is processing.

Some programs have an option to check for the presence of a file with a predefined name, before processing the content.

To support multiple programs in one go, it would make sense if NzbGet featured a field to define a comma separated list of filenames. Empty files with the defined names, would be placed into the destination folder as soon as it is created. This would instruct less flexible programs to back-off, while NzbGet is processing.

These files should of course be deleted once NzbGet is done processing the destination folder.

Re: [Feature Request] option to place an .ignore file in desstination folder

Posted: 15 Dec 2018, 13:01
by hugbug
What is the application causing this troubles and what ignore-file would help?

A possible workaround: as destination use directory which isn't monitored by the app. Then use VideoSort or other script to move downloaded files into final directory. If the both directories are on the same physical drive the move is instant.

Re: [Feature Request] option to place an .ignore file in desstination folder

Posted: 15 Dec 2018, 13:12
by silhouette
That would for instance be emby.

It monitors a directory for changes and would start processing as soon as the first files appear.

Emby ignore directory, as long as a .ignore file s
is pressent.

This is the implementation in sabnzbd:
nomedia_marker:

Just before unpacking of files into the final folder, SABnzbd will put a special marker file (e.g. ".nomedia") in the folder. Afterwards it will be deleted. This prevents some media player software from trying to index the folder while still incomplete. You can disable the feature by clearing the field, or you can set an alternative name. Check your media software's manual.

I will consider a workaround.

Re: [Feature Request] option to place an .ignore file in desstination folder

Posted: 15 Dec 2018, 14:08
by hugbug
I see how it can be useful.
Do we really need multiple files though?

Re: [Feature Request] option to place an .ignore file in desstination folder

Posted: 15 Dec 2018, 19:34
by silhouette
I presume that one would be enough for most, if not all use cases.

I just figured that making it an optional list variable, would be more or less the same work and might add flexibility in some special use cases.