[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: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 27 Jul 2014, 14:50

In the code of guessit (in the directory lib of VideoSort) there is somewhere an array of video extensions. Try searching for "mkv" and add "iso" there.

TRaSH
Posts: 54
Joined: 23 Mar 2014, 10:11

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

Post by TRaSH » 27 Jul 2014, 16:19

thnx,
i renamed one of the lame video containers with iso,
and now it works.
:D

d3lta
Posts: 1
Joined: 28 Jul 2014, 20:25

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

Post by d3lta » 28 Jul 2014, 20:36

Hello,

can you make a version that takes the nzb name and not the name of the mkv or media file in the rar files... many poster now use movie name backwards als mkv name so videosort can't process it right.

thanks

kloaknet
Posts: 337
Joined: 23 Jul 2014, 08:52

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

Post by kloaknet » 03 Aug 2014, 09:44

d3lta wrote:Hello,

can you make a version that takes the nzb name and not the name of the mkv or media file in the rar files... many poster now use movie name backwards als mkv name so videosort can't process it right.

thanks
I think these to rename options will help you out with this:

%dn - original directory name (nzb-name);
%fn - original filename;

more options here: http://nzbget.net/VideoSort#Formatting_string

kloaknet
Posts: 337
Joined: 23 Jul 2014, 08:52

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

Post by kloaknet » 03 Aug 2014, 09:52

I would like the idea having an option to disable Movie handling or TV handling individually.

Currently my TV stuff is moved to a folder called ZZZ_RSS, and videosort does it job well moving it to the desired folders.

My movies are already send to the correct folder via the categories mapping option, so I have left the MoviesDir option for VideoSort empty. This however results in that the movies end up with the (2) at the end of the file. So I guess the file is copied (moved to the same folder), and the original file is deleted. Note it's just working fine for me atm, just a suggestion for a possible future release.

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

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

Post by hugbug » 03 Aug 2014, 10:14

kloaknet wrote:I would like the idea having an option to disable Movie handling or TV handling individually.
You can do that by activating VideoSort in the categories settings using option CategoryX.PostScript (.DefScript in v12) instead of activating VideoSort in global PostScript (DefScript in v12).

d4f0rc3_
Posts: 4
Joined: 14 May 2014, 13:49

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

Post by d4f0rc3_ » 09 Aug 2014, 05:18

So far I got Videosort set up the way I want it to behave, but I have one problem. I manually set the category and destination for each download. Now Videosort is renaming the file correctly using the %dn specifier but it's always moving the file to the directory above.

example:

download to: /hdd/movies/moviename/
unrar to: /hdd/movies/moviename/

now videosort is renaming to file like this:

/hdd/movies/moviename/moviename.avi

after that, the file is moved like this:

/hdd/movies/moviename/moviename.avi ----moved----> /hdd/movies/moviename.avi

How can I tell Videosort to stop moving the file after renaming it. Everything else like cleanup etc. is done before videosort is being launched. I really can't find any setting to tell videosort to stop moving the files to the upper directory level.

Because I'm using Categories only, is there a way to extend "CategoryX.DestDir" to "CategoryX.DestDir/moviename"?

Nedle
Posts: 49
Joined: 06 Aug 2014, 10:24

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

Post by Nedle » 12 Aug 2014, 15:34

You can include the folder in the formatting rules for movies, so if you set it to: "%t/%t" It will place the movie file in a folder which is equal to the <moviename> and inside will be the video file: <moviename>.<ext>

Nedle
Posts: 49
Joined: 06 Aug 2014, 10:24

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

Post by Nedle » 12 Aug 2014, 16:50

I'm getting an error when trying to process the movie Amélie, looks like it is because of the special character é:

Code: Select all

Tue Aug 12 17:48:05 2014	INFO	Executing post-process-script call_VideoSort.sh for Amelie.2001.720p.BRRip.AC3.x264.MacGuffin
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort: Traceback (most recent call last):
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort:   File "/storage/sdcard0/usbStorage/sda1/Scripts/VideoSort.py", line 813, in <module>
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort:     new_path = construct_path(old_path)
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort:   File "/storage/sdcard0/usbStorage/sda1/Scripts/VideoSort.py", line 756, in construct_path
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort:     path = path_subst(sorter, mapping)
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort:   File "/storage/sdcard0/usbStorage/sda1/Scripts/VideoSort.py", line 237, in path_subst
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort:     return ''.join(newpath)
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 2: ordinal not in range(128)
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort: dlopen libpython2.6.so
Tue Aug 12 17:48:06 2014	WARNING	call_VideoSort: Output: -rwxrwxr-x root     sdcard_rw 3578537791 2014-08-12 15:48 Amelie 2001 720p BRRip AC3 x264 MacGuffin.mkv
Tue Aug 12 17:48:06 2014	INFO	call_VideoSort: Detected obfuscated directory name macguffin-amelie720p, removing from guess path
Tue Aug 12 17:48:06 2014	ERROR	call_VideoSort: Failed: Amelie 2001 720p BRRip AC3 x264 MacGuffin.mkv
Tue Aug 12 17:48:06 2014	ERROR	call_VideoSort: 'ascii' codec can't decode byte 0xe3 in position 2: ordinal not in range(128)
Tue Aug 12 17:48:06 2014	ERROR	Post-process-script call_VideoSort.sh for Amelie.2001.720p.BRRip.AC3.x264.MacGuffin failed
Tue Aug 12 17:48:07 2014	INFO	Cleaning up download queue for Amelie.2001.720p.BRRip.AC3.x264.MacGuffin
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol000+01.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol001+02.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol003+04.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol007+08.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol015+16.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol031+32.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol063+41.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol104+66.par2 from download queue
Tue Aug 12 17:48:07 2014	DETAIL	Deleting file macguffin-amelie720p.vol170+66.par2 from download queue
Tue Aug 12 17:48:07 2014	INFO	Collection Amelie.2001.720p.BRRip.AC3.x264.MacGuffin added to history
Tried to add some encoding to the string but can't get it to work.

d4f0rc3_
Posts: 4
Joined: 14 May 2014, 13:49

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

Post by d4f0rc3_ » 16 Aug 2014, 09:58

Nedle wrote:You can include the folder in the formatting rules for movies, so if you set it to: "%t/%t" It will place the movie file in a folder which is equal to the <moviename> and inside will be the video file: <moviename>.<ext>
Thank You! That worked like a charm, using %dn/%dn at the moment. Sometimes due to the file staying in the directory, the cleanup failes to remove other folders and files inside the directoy, but that's no problem.

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests