[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 » 12 Nov 2015, 11:38

@nadavar:
Thanks for reporting this. Will fix it.

asselnik
Posts: 13
Joined: 11 Nov 2015, 08:01

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

Post by asselnik » 22 Nov 2015, 14:48

Hello,
i only want to move automatically my MKV-File from DST-Folder to another Folder.

But with VideoSort i become this error:

"VideoSort: invalid arguments"

Can you help me?


Here ist the full log:

ERROR Sun Nov 22 2015 15:45:56 Post-process-script VideoSort.py for name.par2-45626-MB-Usenet-Space-C failed
ERROR Sun Nov 22 2015 15:45:55 VideoSort: invalid arguments
ERROR Sun Nov 22 2015 15:45:55 VideoSort: Failed: name.mkv
INFO Sun Nov 22 2015 15:45:55 VideoSort: Skipping small: name.mkv
INFO Sun Nov 22 2015 15:45:55 VideoSort: TypeError: invalid arguments
INFO Sun Nov 22 2015 15:45:55 VideoSort: raise TypeError, "invalid arguments"
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/HDA_DATA/.qpkg/Python/lib/python2.7/optparse.py", line 1018, in add_option
INFO Sun Nov 22 2015 15:45:55 VideoSort: help='List of expected series to parse. Separate series names with ";"')
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/lib/guessit/transfo/expected_series.py", line 37, in register_options
INFO Sun Nov 22 2015 15:45:55 VideoSort: transformer.register_options(opts, naming_opts, output_opts, information_opts, webservice_opts, other_opts)
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/lib/guessit/options.py", line 63, in build_opts
INFO Sun Nov 22 2015 15:45:55 VideoSort: _opts, _naming_opts, _output_opts, _information_opts, _webservice_opts, _other_opts = build_opts(transformers)
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/lib/guessit/options.py", line 70, in reload
INFO Sun Nov 22 2015 15:45:55 VideoSort: reload_options(all_transformers())
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/lib/guessit/plugins/transformers.py", line 210, in reload
INFO Sun Nov 22 2015 15:45:55 VideoSort: reload()
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/lib/guessit/plugins/transformers.py", line 212, in <module>
INFO Sun Nov 22 2015 15:45:55 VideoSort: from guessit.plugins import transformers
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/lib/guessit/matcher.py", line 110, in __init__
INFO Sun Nov 22 2015 15:45:55 VideoSort: matcher = guessit.matcher.IterativeMatcher(unicode(guessfilename), filetype='autodetect', options={'nolanguage': True, 'nocountry': True})
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/VideoSort.py", line 980, in guess_info
INFO Sun Nov 22 2015 15:45:55 VideoSort: guess = guess_info(filename)
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/VideoSort.py", line 1065, in construct_path
INFO Sun Nov 22 2015 15:45:55 VideoSort: new_path = construct_path(old_path)
INFO Sun Nov 22 2015 15:45:55 VideoSort: File "/share/Download/nzbget/scripts/VideoSort.py", line 1180, in <module>
INFO Sun Nov 22 2015 15:45:55 VideoSort: Traceback (most recent call last):
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(847): Option "StrictParName" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(791): Option "LoadPars" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(721): Option "ProcessLogKind" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(687): Option "ResetLog" is obsolete, ignored, use "WriteLog" instead
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(684): Option "CreateLog" is obsolete, ignored, use "WriteLog" instead
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(554): Option "ThreadLimit" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(443): Option "RenameBroken" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(432): Option "ReloadPostQueue" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(426): Option "ReloadUrlQueue" is obsolete, ignored
INFO Sun Nov 22 2015 15:45:49 VideoSort: nzbget.conf(287): Option "MergeNzb" is obsolete, ignored

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

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

Post by hugbug » 22 Nov 2015, 15:17

May be a bad or old python.
Try installing a newer python.
VideoSort certainly works on QNAP. Try asking on their forum in nzbget subforum.

asselnik
Posts: 13
Joined: 11 Nov 2015, 08:01

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

Post by asselnik » 22 Nov 2015, 18:59

Thanks for answer.

I have installed the last Version 2.3.5, but ist the same problem...

One question: In what directory ist the python for nzbget?


P.S. Also i have read this:

Deprecated since version 2.7: The optparse module is deprecated and will not be developed further; development will continue with the argparse module.

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

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

Post by hugbug » 22 Nov 2015, 20:21

NZBGet doesn't ship with python. Python is to be isntalled separately. I can't answer QNAP-specific questions as I don't have one. That's whyyou should ask on QNAP forum. What I know for sure is that VideoSort works with current python 2.x.

nadavar
Posts: 3
Joined: 12 Nov 2015, 10:58

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

Post by nadavar » 23 Nov 2015, 12:19

Somehow everytime I restart the computer, the settings for the line extensions reverts to default (puts spaces between each extension). Other settings remain in tact.
I'm running this as part of the audo extension in openelec.

Is there a backup config file which loads when started or is it on audo's side?

Thanks

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

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

Post by hugbug » 23 Nov 2015, 21:11

Nothing is restored automatically.
What settings for line extensions do you mean?

nadavar
Posts: 3
Joined: 12 Nov 2015, 10:58

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

Post by nadavar » 27 Nov 2015, 09:30

line extensions - i mean the settings for the extensions to take into account...

sadsack5000
Posts: 9
Joined: 27 Dec 2015, 19:52

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

Post by sadsack5000 » 27 Dec 2015, 20:22

Dudes,

Getting a problem whereby 30% of my tv shows i download are sorted into my movies category instead of TV Series. Log is beneath (culled) and screenshots attached.

Ive been trying everything to find out why the problem is happening but i cant seem to nail it down suffice to say that it only happens to SOME of the tv progs i download. Sorry if thats not much help but 70% of my progs make their way into the correct folder and ive noticed that the 30% that get sent to movies NZBGET categorises them correctly as tv!

Any help you can give me to fix this is greatly appreciated!!!

Code: Select all

Sun Dec 27 12:44:31 2015	DETAIL	Category TV > HD matched to tv for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA.nzb
Sun Dec 27 12:44:31 2015	INFO	Adding collection A.Gert.Lush.Christmas.720p.HDTV.x264-TLA.nzb to queue
Sun Dec 27 12:44:31 2015	INFO	Collection A.Gert.Lush.Christmas.720p.HDTV.x264-TLA added to queue
Sun Dec 27 12:44:31 2015	INFO	Executing queue-script FakeDetector.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:44:32 2015	DETAIL	Downloading A.Gert.Lush.Christmas.720p.HDTV.x264-TLA/230642c70a263fcc99b6eb32d3621d23.10 [1/69] @ Weaselserver (news.newshosting.com)
Sun Dec 27 12:45:46 2015	INFO	Unrar: Extracting af995f6ea240a901b05aa9f9cdf0635b0542aa24.mkv
Sun Dec 27 12:45:47 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part02.rar
Sun Dec 27 12:45:47 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part03.rar
Sun Dec 27 12:45:47 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part04.rar
Sun Dec 27 12:45:47 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part05.rar
Sun Dec 27 12:45:48 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part06.rar
Sun Dec 27 12:45:48 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part07.rar
Sun Dec 27 12:45:48 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part08.rar
Sun Dec 27 12:45:48 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part09.rar
Sun Dec 27 12:45:49 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part10.rar
Sun Dec 27 12:45:49 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part11.rar
Sun Dec 27 12:45:49 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part12.rar
Sun Dec 27 12:45:49 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part13.rar
Sun Dec 27 12:45:50 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part14.rar
Sun Dec 27 12:45:50 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part15.rar
Sun Dec 27 12:45:50 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part16.rar
Sun Dec 27 12:45:51 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part17.rar
Sun Dec 27 12:45:51 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part18.rar
Sun Dec 27 12:45:52 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part19.rar
Sun Dec 27 12:45:52 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part20.rar
Sun Dec 27 12:45:53 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part21.rar
Sun Dec 27 12:45:53 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part22.rar
Sun Dec 27 12:45:54 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part23.rar
Sun Dec 27 12:45:54 2015	INFO	Unrar: Extracting from af995f6ea240a901b05aa9f9cdf0635b0542aa24.part24.rar
Sun Dec 27 12:45:54 2015	INFO	Unrar: All OK
Sun Dec 27 12:45:54 2015	INFO	Deleting archive files
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part21.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part12.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part17.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part10.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part15.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part06.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part01.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part05.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part20.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part08.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part16.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part04.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part14.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part19.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part24.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part13.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part03.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part09.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part07.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part23.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part18.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part22.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part11.rar
Sun Dec 27 12:45:54 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.part02.rar
Sun Dec 27 12:45:54 2015	INFO	Unpack for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:54 2015	INFO	Checking renamed files for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:54 2015	INFO	No renamed files found for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:55 2015	INFO	Cleaning up A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:55 2015	INFO	Deleting file 9182787e567ade7dafd9753ffc8f096e.par2
Sun Dec 27 12:45:55 2015	INFO	Deleting file af995f6ea240a901b05aa9f9cdf0635b0542aa24.nfo
Sun Dec 27 12:45:55 2015	INFO	Cleanup for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:55 2015	INFO	Moving completed files for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:55 2015	INFO	Move for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:56 2015	INFO	Executing post-process-script FakeDetector.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	DETAIL	FakeDetector: Detecting fake for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	DETAIL	FakeDetector: Detecting completed for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	DETAIL	FakeDetector: Removing temp file /share/Download/nzbget/tmp/FakeDetector/55
Sun Dec 27 12:45:56 2015	INFO	Post-process-script FakeDetector.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:56 2015	INFO	Executing post-process-script GetScripts-master/DeleteSamples.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	INFO	DeleteSamples: Script triggered from NZBGet Version 16.4.
Sun Dec 27 12:45:56 2015	INFO	Post-process-script GetScripts-master/DeleteSamples.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:56 2015	INFO	Executing post-process-script GetScripts-master/flatten.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	INFO	flatten: Script triggered from NZBGet Version 16.4.
Sun Dec 27 12:45:56 2015	INFO	flatten: Flattening directory: /share/Download/nzbget/complete/A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	INFO	flatten: Checking for empty folders in:/share/Download/nzbget/complete/A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:56 2015	INFO	Post-process-script GetScripts-master/flatten.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:56 2015	INFO	Executing post-process-script videosort/VideoSort.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:57 2015	INFO	VideoSort: Moved: /share/Multimedia/Videos/Movies/A Gert Lush Christmas.mkv
Sun Dec 27 12:45:57 2015	INFO	VideoSort: Deleted: /share/Download/nzbget/complete/A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:57 2015	INFO	Post-process-script videosort/VideoSort.py for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA successful
Sun Dec 27 12:45:57 2015	INFO	Unpausing download after post-process-script
Sun Dec 27 12:45:57 2015	INFO	Cleaning up download queue for A.Gert.Lush.Christmas.720p.HDTV.x264-TLA
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol000+01.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol001+02.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol003+04.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol007+08.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol015+16.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol031+32.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol063+64.par2 from download queue
Sun Dec 27 12:45:57 2015	DETAIL	Deleting file 230642c70a263fcc99b6eb32d3621d23.vol127+74.par2 from download queue
Sun Dec 27 12:45:57 2015	INFO	Collection A.Gert.Lush.Christmas.720p.HDTV.x264-TLA added to history
Attachments
Categories.png
Videosort1.png
Videosort2.png

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

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

Post by hugbug » 27 Dec 2015, 20:32

Activate option Verbose in VideoSort and then post new log.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 20 guests