boranblok / nntpPoster

A utility to post files and folders to usenet.
67 stars 14 forks source link

modifying the .nzb file before sending #77

Open urbanspring opened 2 years ago

urbanspring commented 2 years ago

hi if i wanted to add some meta data to a .nzb before it gets sent what file would i edit? i cant seem to find the file that creates the .nzb/xml file?

urbanspring commented 2 years ago

/nntpPoster/UsenetPoster.cs

boranblok commented 2 years ago

Hi,

in /nntpAutoposter/IndexerNotifierNzbPost.cs the indexer is notified.

But the NZB itself is indeed made in /nntpPoster/UsenetPoster.cs more specifically the method GenerateNzbFromPostInfo constructs the nzb XML, so any special stuff is best done there. However this part of the code does not know the nzb is going to be sent to an indexer, so it might be some work if you need to push parameters from the autoposter all the way down to this part.