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:
Z:\Media\dailycolbert\The.Daily.Show.2013.08.15.Simon.Pegg.720p.HDTV.x264-LMAO
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.
But, hey, what fun is it doing things the easy way?!
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.
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:
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.
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.
In other words, if Category Destination is empty or the category is unknown, then put them in MoviesDir/SeriesDir/DatedDir as the "guessed" video type dictates. If the appropriate MoviesDir/SeriesDir/DatedDir is empty, then put them in the global DestDir.
hugbug wrote:
BTW, I have made other improvements to the script and will post a new version soon.
So would this be good time to bring up another issue I have run into?
There are sometimes tv series that have a name of an earlier series. Examples would be Parenthood, The Newsroom, and The Killing. These are listed in tv databases such as thetvdb.com and tvrage.com as Parenthood 2009, The Newsroom 2012, and The Killing 2011, respectively. Including the year in the folder and file name is important for video jukebox applications to locate the data and artwork for the correct series and episode. VideoSort does not currently include the year. Could it be possible to get that included?
I'm looking forward to the new version and, thanks for all you've done to date!