[PP-Script] VideoSort - better video sorting

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
hugbug
Developer & Admin
Posts: 7541
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [PP-Script] VideoSort - better video sorting

Post by hugbug » 14 Feb 2015, 21:27

passie wrote:

Code: Select all

WARNING	Sat Feb 14 2015 10:56:29	VideoSort: Skipping clean up due to large files remaining in the directory
Check remaining files. There must be files bigger than MinSize (as set in VideoSort options). That's why it skipped cleanup as a security measure to avoid deletion of eventually important files.

passie
Posts: 10
Joined: 14 Feb 2015, 10:03

Re: [PP-Script] VideoSort - better video sorting

Post by passie » 15 Feb 2015, 07:57

hugbug wrote:
passie wrote:

Code: Select all

WARNING	Sat Feb 14 2015 10:56:29	VideoSort: Skipping clean up due to large files remaining in the directory
Check remaining files. There must be files bigger than MinSize (as set in VideoSort options). That's why it skipped cleanup as a security measure to avoid deletion of eventually important files.
thanks for your answer.

Checking the folder where the movie is I see the following files / folders:

Code: Select all

15-02-2015  08:52    <DIR>          .
15-02-2015  08:45    <DIR>          ..
03-06-2012  15:47           465.708 Beste payserver.jpg
06-11-2013  20:59               115 Kom ook naar Place2home Torrents.url
15-03-2013  19:23               176 Place2home.net __USENET-FORUM__.url
13-03-2013  22:58               178 Usenet Provider Newsconnection.nl.url
29-02-2012  19:30           231.692 Vindt ons hier.jpg
12-02-2015  22:32     4.380.686.336 The Captive (2014).iso
15-02-2015  08:52             2.183 The Captive (2014) - Snelkoppeling.lnk
15-02-2015  08:52             2.183 The Captive (2) - Snelkoppeling ().lnk
               8 bestand(en)    4.381.388.571 bytes
               2 map(pen)  2.108.547.256.320 bytes beschikbaar
It first moves the .ISO and only smaller files are left.
What would the settings be to make sure videosort does what it should do ?
Should I change the MinSize ?
According to this setting in Cleanup

Code: Select all

If after successful sorting all remaining files in the download directory are smaller than "MinSize" the directory with all files is removed
It should just delete the files right ?

hugbug
Developer & Admin
Posts: 7541
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [PP-Script] VideoSort - better video sorting

Post by hugbug » 15 Feb 2015, 09:30

Is this the destdir-folder after VideoSort was executed? The strange thing is thatthe iso temained here, it should have been moved into movies-dir.

passie
Posts: 10
Joined: 14 Feb 2015, 10:03

Re: [PP-Script] VideoSort - better video sorting

Post by passie » 15 Feb 2015, 14:35

hugbug wrote:Is this the destdir-folder after VideoSort was executed? The strange thing is thatthe iso temained here, it should have been moved into movies-dir.
The files from above is the final destination folder.

DestDir = /volume1/downloads/postproces
Category DestDir = /volume1/Movies
and
MoviesDir from videosort is empty. So it is taking the path's from the category DestDir

hugbug
Developer & Admin
Posts: 7541
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [PP-Script] VideoSort - better video sorting

Post by hugbug » 15 Feb 2015, 14:41

If a category has DestDir it overrides the global DestDir.
The problem here is that you have the same directory defined as destination in VideoSort. Either change the DestDir of category or MoviesDir in VideoSort.

passie
Posts: 10
Joined: 14 Feb 2015, 10:03

Re: [PP-Script] VideoSort - better video sorting

Post by passie » 16 Feb 2015, 08:26

hugbug wrote:If a category has DestDir it overrides the global DestDir.
The problem here is that you have the same directory defined as destination in VideoSort. Either change the DestDir of category or MoviesDir in VideoSort.
Could you please help me out on what the path's should be, since i'm not entirely sure I understand you correctly.
I would like to download my movies in some tmp folder. Currently this is DestDir = /volume1/downloads/postproces
The unpack it and videosort should place them in either
/volume1/Kids or /Volume1/Movies depending on the category they are in.
And clean everything which should not belong there.

Thank you upfront

hugbug
Developer & Admin
Posts: 7541
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [PP-Script] VideoSort - better video sorting

Post by hugbug » 16 Feb 2015, 13:40

VideoSort uses MoviesDir or SeriesDir as destination directory depending on video type (movie or episode), which it detects automatically.

The problem here is that you want different destination directories depending on categories. VideoSort can't do that right now. I'll see how I can improve this.

passie
Posts: 10
Joined: 14 Feb 2015, 10:03

Re: [PP-Script] VideoSort - better video sorting

Post by passie » 16 Feb 2015, 15:05

hugbug wrote:VideoSort uses MoviesDir or SeriesDir as destination directory depending on video type (movie or episode), which it detects automatically.

The problem here is that you want different destination directories depending on categories. VideoSort can't do that right now. I'll see how I can improve this.

Thank you, will keep my eyes on this extension :)

hugbug
Developer & Admin
Posts: 7541
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [PP-Script] VideoSort - better video sorting

Post by hugbug » 16 Feb 2015, 19:20

This is how you do that:
  • make a copy of VideoSort-folder (in the same directory under ppscritps) or create a symlink if your OS supports them and if you know how to do that; name this folder VideoSort-Kids or whatever you like;
  • open Settings-page in NZBGet; if you were there already switch to Downloads-page and back to Settings to reread the list of pp-scripts;
  • now you have new script VideoSort-Kids in addition to existing script VideoSort;
  • in the settings of script VideoSort-Kids configure all options as you need: set MoviesDir to /volume1/Kids etc.;
  • the remaining script VideoSort you will use for all things other than Kids-videos; set MoviesDir to /volume1/Movies there;
  • set the global DestDir to some temporary directory, for example /volume1/downloads/postproces as you already have;
  • in the category Kids set the DestDir empty; this directory is used as temporary directory and should not point to /volume1/Kids;
  • in the category Kids select pp-script VideoSort-Kids in option PostScript;
What you achieved now is that category Kids is processed with script VideoSort-Kids with its own settings (MoviesDir, etc.) and all other categories are processed by VideoSort with its settings.

Because you have configured option PostScript in the category it overrides the global PostScript. If you need more script to work for category Kids you should select all them in category (EMail, Logger, etc.).

passie
Posts: 10
Joined: 14 Feb 2015, 10:03

Re: [PP-Script] VideoSort - better video sorting

Post by passie » 17 Feb 2015, 08:41

hugbug wrote:This is how you do that:
  • make a copy of VideoSort-folder (in the same directory under ppscritps) or create a symlink if your OS supports them and if you know how to do that; name this folder VideoSort-Kids or whatever you like;
  • open Settings-page in NZBGet; if you were there already switch to Downloads-page and back to Settings to reread the list of pp-scripts;
  • now you have new script VideoSort-Kids in addition to existing script VideoSort;
  • in the settings of script VideoSort-Kids configure all options as you need: set MoviesDir to /volume1/Kids etc.;
  • the remaining script VideoSort you will use for all things other than Kids-videos; set MoviesDir to /volume1/Movies there;
  • set the global DestDir to some temporary directory, for example /volume1/downloads/postproces as you already have;
  • in the category Kids set the DestDir empty; this directory is used as temporary directory and should not point to /volume1/Kids;
  • in the category Kids select pp-script VideoSort-Kids in option PostScript;
What you achieved now is that category Kids is processed with script VideoSort-Kids with its own settings (MoviesDir, etc.) and all other categories are processed by VideoSort with its settings.

Because you have configured option PostScript in the category it overrides the global PostScript. If you need more script to work for category Kids you should select all them in category (EMail, Logger, etc.).
I have done as explained above. Though it seems not to work as expected.
At first it looked promising.

Code: Select all

INFO	Tue Feb 17 2015 09:20:33	Cleaning up download queue for The Captive (2014)
INFO	Tue Feb 17 2015 09:20:33	Post-process-script videosort/VideoSort.py for The Captive (2014) successful
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)/Vindt ons hier.jpg
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)/Usenet Provider Newsconnection.nl.url
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)/Place2home.net __USENET-FORUM__.url
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)/Kom ook naar Place2home Torrents.url
NFO		Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)/Kom ook naar Place2home Torrents.url
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Deleted: /volume1/downloads/postproces/Movies/The Captive (2014)/Beste payserver.jpg
INFO	Tue Feb 17 2015 09:20:33	videosort/VideoSort: Moved: /volume1/Movies/The Captive (2014)/The Captive (2014).iso


The Kids movie was not moved after downloading. I'll try some more test in the evening.

Code: Select all

INFO	Tue Feb 17 2015 09:29:24	Cleaning up download queue for De Jungle Bende 2 (2015)
INFO	Tue Feb 17 2015 09:29:24	Post-process-script videosort-kids/VideoSort.py for De Jungle Bende 2 (2015) skipped
INFO	Tue Feb 17 2015 09:29:22	Executing post-process-script videosort-kids/VideoSort.py for De Jungle Bende 2 (2015)
INFO	Tue Feb 17 2015 09:29:22	Move for De Jungle Bende 2 (2015) successful
So as you can see it's skipping.
As said i'll try some more test tonight.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests