Thank you again. Now it does say succesfull, but does not flatten. For Example "Reno.and.Decor".clintonhall wrote:I updated the code above... stupid typo had "dirPath" instead of "dirpath"
Try again.
Code: Select all
INFO Wed Nov 12 2014 20:40:55 Collection Reno.and.Decor.TruePDF-December.2014 added to history
INFO Wed Nov 12 2014 20:40:55 Post-process-script flatten.py for Reno.and.Decor.TruePDF-December.2014 successful
INFO Wed Nov 12 2014 20:40:54 flatten: Checking for empty folders in:/volume1/Downloads/ebooks/Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 flatten: Flattening directory: /volume1/Downloads/ebooks/Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 flatten: Script triggered from NZBGet Version 14.0-testing.
INFO Wed Nov 12 2014 20:40:54 Executing post-process-script flatten.py for Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 Unpausing download after move
INFO Wed Nov 12 2014 20:40:54 Move for Reno.and.Decor.TruePDF-December.2014 successful
INFO Wed Nov 12 2014 20:40:54 Moving file Reno.and.Decor.TruePDF-December.2014.pdf to /volume1/Downloads/ebooks/Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 Moving file Reno.and.Decor.TruePDF-December.2014.pdf.par2 to /volume1/Downloads/ebooks/Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 Moving completed files for Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 Nothing to unpack for Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 No renamed files found for Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 Checking renamed files for Reno.and.Decor.TruePDF-December.2014
INFO Wed Nov 12 2014 20:40:54 Pausing download before par-rename
INFO Wed Nov 12 2014 20:40:54 Queueing Reno.and.Decor.TruePDF-December.2014 for post-processing
INFO Wed Nov 12 2014 20:40:54 Collection Reno.and.Decor.TruePDF-December.2014 completely downloaded
INFO Wed Nov 12 2014 20:40:54 Successfully downloaded Reno.and.Decor.TruePDF-December.2014/Reno.and.Decor.TruePDF-December.2014.pdf
The script does what was requested. The top-level folder with nzb-name is created automatically by NZBGet. All additional folders inside archive are flattened by the script.Vash wrote:I had this feature with sabnzbd, called "flat_unpack". It upacks files, but ignores the subfolders in the archive.
Hi hugbug, actually i was looking for a way to get this Sabnzbd feature "flat_unpack" with nzbget. English is not my motherlanguage, I'am sorry for the misunderstanding. With Sabnzbd you can activate for each rss stream that "flat_unpack" feature. That means, that all files are extracted flat into main rss folder, like for example "/volume1/Downloads/ebooks/". No subfolders at all, all files flat in main. Well, if it's not possible, i can live without it It's still a cool feature for maybe someday in the future??hugbug wrote:The script does what was requested. The top-level folder with nzb-name is created automatically by NZBGet. All additional folders inside archive are flattened by the script.Vash wrote:I had this feature with sabnzbd, called "flat_unpack". It upacks files, but ignores the subfolders in the archive.
If you want to move files outside of the nzb-folder that requires attention to handle existing files with the same names.
The script works as expected, see the first post. For what you want (which is an undestandable request) the script has to be extended.Magoo wrote:For some reason I can't get this script to work properly even after setting "destination dir".
No error or warnings, but I still end up with the nzb folder name?
Users browsing this forum: No registered users and 30 guests