pp-scripts can now set post-processing parameters by printing command "[NZB] NZBPR_varname=value"; this allows scripts which are executed sooner to pass data for scripts executed later
Gotcha! You are right, of course. In discovering that after VideoSort finishes the directory specified by NZBPP_DIRECTORY doesn't exist in my case, I looked for any way to get the category directory other than with the NZBPP_DIRECTORY. Of course it would still be correct when VideoSort runs.hugbug wrote: 2. the set_dest_dir can be much simpler. The files are already in category destination directory. You just need to take the parent path of NZBPP_DIRECTORY.
What I meant is at the time when VideoSort is started files are already in category destination dir:
I'm not clear on what your thinking is here, but comparing NZBPP_DIRECTORY with NZBOP_DESTDIR isn't necessarily going to yield useful results. There is nothing that says there has to be any relative path relationship between the two. NZBOP_DESTDIR could be "c:\any\old\path" while NZBOP_DESTDIR could be "z:\whatever", right?hugbug wrote: Well, your code works slightly different - it use current destination only if category has a dest dir set. This can be achieved by comparing parent of NZBPP_DIRECTORY with NZBOP_DESTDIR.
In my opinion, category destination should take precedence over MoviesDir/SeriesDir/DatedDir which should take precedence over global DestDir. My reasoning is that I clearly want files of a category put into a specific location. I want VideoSort to do its thing to the files, but ultimately if I specify a category destination, that's where they should end up.hugbug wrote: But I don't think it's necessary. I'll do it simple:
If MoviesDir/SeriesDir,etc. is empty the current destination will be used - which is CategoryX.DestDir if category was used or gloabl DestDir if no category was used.
So would this be good time to bring up another issue I have run into?hugbug wrote: BTW, I have made other improvements to the script and will post a new version soon.
Code: Select all
python24_2.4.6-2_arm.ipk 13-Feb-2012 04:04 9249433 python25_2.5.6-2_arm.ipk 14-Feb-2012 06:16 11112324 python26_2.6.8-1_arm.ipk 12-Apr-2012 12:40 13994112 python27_2.7.3-1_arm.ipk 12-Apr-2012 12:46 15502415 python3_3.2.3-3_arm.ipk 30-Oct-2012 10:06 15972319 python_2.5-1_arm.ipk
Users browsing this forum: No registered users and 2 guests