[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.
TRaSH
Posts: 54
Joined: 23 Mar 2014, 10:11

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

Post by TRaSH » 28 Sep 2014, 13:27

thnx i will give it a try

void.pointer
Posts: 59
Joined: 28 Sep 2014, 20:58

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

Post by void.pointer » 28 Sep 2014, 22:24

What is the difference between "Dated TV" and "Series TV" (as indicated by "SeriesDir" and "DatedDir" in the settings)?

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

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

Post by hugbug » 29 Sep 2014, 07:39

Series have season and episode numbers, e. g. "Game.of.Thrones.S03E01".
Dated shows are aired on certain dates, e. g. "The.Daily.Show.2013.06.27.Tom.Goldstein"

renton
Posts: 11
Joined: 02 Oct 2014, 08:39

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

Post by renton » 18 Oct 2014, 15:23

I'm trying out VideoSort and ran into a problem. Right now what I have is this;

Code: Select all

ShowName.Folder
Episode Name Folder1
          ..Episode Name File1
Episode Name Folder2
          ..Episode Name File2
Episode Name Folder3
          ..Episode Name File3
And what I want is;

Code: Select all

ShowName.Folder
Episode Name File1
Episode Name File2
Episode Name File3
There is a name for this, but I honestly drawing a blank right now... :oops:

So if you managed to understand what I'm talking about - how to I go about this? :?:

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

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

Post by hugbug » 18 Oct 2014, 17:05

Use slashes in the format-string to build subdirectories, for example:

Code: Select all

SeriesFormat=%sn/%sn %0s %0e

renton
Posts: 11
Joined: 02 Oct 2014, 08:39

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

Post by renton » 18 Oct 2014, 19:11

I don't want subfolders.

This is what I have right now;

Image

This is what I want VideoSort to do automatically;
Image

rovingkid
Posts: 39
Joined: 29 Aug 2014, 11:49

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

Post by rovingkid » 21 Oct 2014, 12:53

I use

Code: Select all

%sN/Season %s/%sx%0e - %eN
to get
2014-10-21_14-51-42.png
2014-10-21_14-51-42.png (19.32 KiB) Viewed 2773 times

DarkKnyte
Posts: 2
Joined: 22 Oct 2014, 01:11

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

Post by DarkKnyte » 22 Oct 2014, 01:27

Is it possible to use VS to put Movies in a further set of subdirectories based on Decade & Year?

My current Movie folder structure reads like:

\\NAS\Movies\
  • 1979-earlier
  • 1989-1980
  • 1999-1990
  • 2009-2000
  • 2010
  • 2011
  • 2012
  • 2013
  • 2014

The issue being that network browsing is agonizingly slow when all movies are lumped into the same directory, and it's harder to manually find something specific I'm looking for. This way keeps the file counts under ~250 files per directory, and maintains fast navigate+read performance. If your interested in some background, you can find more here. As it is, after CPS does the final name & sort, I still have to move it again from \Movies\ into it's final directory, and I'd really so much rather have Nzbget handle sorting so I can finally move CPS off of the file server (which is a separate, unrelated issue). CPS can obviously handle remote sorting, but without getting too much into it, in my case, it would be really slow due to network performance and I don't want to do it.

binreader
Posts: 20
Joined: 07 Oct 2014, 03:00

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

Post by binreader » 26 Oct 2014, 19:33

I seem to encounter issue where this script delete entire video file after completion. I lost my logs so dunno the trigger but something should be built into to not remove big giant files cuz most likely we wanna keep those.

i was able to simulate the conditions below is section of log file about what it is doing. dunno how this results in multigig file getting destroyed. perhaps it is because the directory and file name is already in the desired format before video sort looks at it. even in preview mode video sort ends up chewing up and digesting the file. this is just test file names i was using, any similarities to a real file name are purely coincidental ;)

Code: Select all

Sun Oct 26 16:48:43 2014	INFO	Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE returned from history back to download queue
Sun Oct 26 16:48:43 2014	INFO	Queueing Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE for post-processing
Sun Oct 26 16:48:44 2014	INFO	Executing post-process-script videosort\VideoSort.py for Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE
Sun Oct 26 16:48:45 2014	INFO	VideoSort: filename: Z:\Movie\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.EXTENDED.1080p.BluRay.X264-AMIABLE.mkv
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Using NZB-Name
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Guessing: Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE.mkv
Sun Oct 26 16:48:45 2014	INFO	VideoSort: 000000000000000000000000000000000000000000000000 111
Sun Oct 26 16:48:45 2014	INFO	VideoSort: 000000000000000000000000000000000000000000000000 000
Sun Oct 26 16:48:45 2014	INFO	VideoSort: 000000000000000000000000000001111112222222222222 000
Sun Oct 26 16:48:45 2014	INFO	VideoSort: 00000000000000000000000111112      0111122222222
Sun Oct 26 16:48:45 2014	INFO	VideoSort: 00000000011112222222222                 01111111
Sun Oct 26 16:48:45 2014	INFO	VideoSort: _____________.Extended._____.______.____-_______.___
Sun Oct 26 16:48:45 2014	INFO	VideoSort: tttttttttyyyy          sssss ffffff vvvv rrrrrrr ccc
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE.mkv
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'type': u'movie'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'title': u'Hercules'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'year': 2014}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'screenSize': u'1080p'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'format': u'BluRay'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'videoCodec': u'h264'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'releaseGroup': u'AMIABLE'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'container': u'mkv'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {u'container': u'mkv'}
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "videoCodec": "h264",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "container": "mkv",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "format": "BluRay",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [0.60] "title": "Hercules",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "releaseGroup": "AMIABLE",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "screenSize": "1080p",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "year": 2014,
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "type": "movie"
Sun Oct 26 16:48:45 2014	INFO	VideoSort: }
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Using DNZB-ProperName
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Using DNZB-MovieYear
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Using DNZB-MoreInfo
Sun Oct 26 16:48:45 2014	INFO	VideoSort: {
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "videoCodec": "h264",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "container": "mkv",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "format": "BluRay",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "cpimdb": "cp(tt1267297)",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "releaseGroup": "AMIABLE",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "vtype": "movie",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "imdb": "tt1267297",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "screenSize": "1080p",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "year": "2014",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [0.60] "title": "Hercules",
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     [1.00] "type": "movie"
Sun Oct 26 16:48:45 2014	INFO	VideoSort: }
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Type: movie
Sun Oct 26 16:48:45 2014	INFO	VideoSort: format: %dn/%dn.%ext
Sun Oct 26 16:48:45 2014	INFO	VideoSort: path after subst: Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE/Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE..mkv
Sun Oct 26 16:48:45 2014	INFO	VideoSort: path after cleanup: Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE.mkv
Sun Oct 26 16:48:45 2014	INFO	VideoSort: destination path: Z:\Movie\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE.mkv
Sun Oct 26 16:48:45 2014	ERROR	VideoSort: Failed: Hercules.2014.EXTENDED.1080p.BluRay.X264-AMIABLE.mkv
Sun Oct 26 16:48:45 2014	ERROR	VideoSort: `Z:\Movie\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.EXTENDED.1080p.BluRay.X264-AMIABLE.mkv` and `Z:\Movie\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE.mkv` are the same file
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Traceback (most recent call last):
Sun Oct 26 16:48:45 2014	INFO	VideoSort:   File "C:\Downloads\nzbget\scripts\videosort\VideoSort.py", line 1139, in <module>
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     new_path = rename(old_path, new_path)
Sun Oct 26 16:48:45 2014	INFO	VideoSort:   File "C:\Downloads\nzbget\scripts\videosort\VideoSort.py", line 383, in rename
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     shutil.move(old, new)
Sun Oct 26 16:48:45 2014	INFO	VideoSort:   File "C:\Python27\lib\shutil.py", line 302, in move
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     copy2(src, real_dst)
Sun Oct 26 16:48:45 2014	INFO	VideoSort:   File "C:\Python27\lib\shutil.py", line 130, in copy2
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     copyfile(src, dst)
Sun Oct 26 16:48:45 2014	INFO	VideoSort:   File "C:\Python27\lib\shutil.py", line 69, in copyfile
Sun Oct 26 16:48:45 2014	INFO	VideoSort:     raise Error("`%s` and `%s` are the same file" % (src, dst))
Sun Oct 26 16:48:45 2014	INFO	VideoSort: Error: `Z:\Movie\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.EXTENDED.1080p.BluRay.X264-AMIABLE.mkv` and `Z:\Movie\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE\Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE.mkv` are the same file
Sun Oct 26 16:48:45 2014	ERROR	Post-process-script videosort\VideoSort.py for Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE failed
Sun Oct 26 16:48:45 2014	INFO	Collection Hercules.2014.Extended.1080p.BluRay.x264-AMIABLE added to history

binreader
Posts: 20
Joined: 07 Oct 2014, 03:00

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

Post by binreader » 31 Oct 2014, 04:16

Hey guys any ideas about this, is it a bug or should I be choosing some other format for the names? I like the format I selected.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest