[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.
BlindFish
Posts: 7
Joined: 03 May 2019, 16:03

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

Post by BlindFish » 20 Nov 2019, 08:20

homerflagada wrote:
10 Oct 2017, 19:05
Hi
is it possible to add a rule like this: "%ABC" and "%abc"
I do not want all my movies to be in the same directory.
I would like my movies to be in a directory of the first letter of the name of the movie/release name.
I cannot find anything in VS Settings or documentation regarding this request from 2017 and was wondering if there has been any action taken so far as i have started to sort my collection in the same way as of the huge directory.

rippy
Posts: 1
Joined: 12 Jan 2020, 07:39

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

Post by rippy » 12 Jan 2020, 07:42

scroll1 wrote:
18 Nov 2019, 05:45
Hi,
I'm having trouble running the script in a docker on my unraid server.
The error message I get in the logs is:

Mon Nov 18 15:28:55 2019 INFO Executing post-process-script VideoSort/VideoSort.py for Panorama.S2018.E14.Getting.A.Fair.Trial.WEB-DL.x264-JIVE
Mon Nov 18 15:28:55 2019 INFO VideoSort: File "/data/scripts/VideoSort/VideoSort.py", line 814
Mon Nov 18 15:28:55 2019 INFO VideoSort: ep_prefix = episode_separator if episode_num_all <> '' else ''
Mon Nov 18 15:28:55 2019 INFO VideoSort: ^
Mon Nov 18 15:28:55 2019 INFO VideoSort: SyntaxError: invalid syntax
Mon Nov 18 15:28:55 2019 ERROR Post-process-script VideoSort/VideoSort.py for Panorama.S2018.E14.Getting.A.Fair.Trial.WEB-DL.x264-JIVE failed (terminated with unknown status)

The error points to the symbols <> before "else"
I'm running version 8 of the script
python v 2.7.16
and I have pip installed guessit

thanks for any help
I'm getting the exact same error, anyone know whats causing it?

Edit:
Found out from another user elsewhere that the issue is that docker doesn't use Python2 anymore as its end of life.

Merlincool
Posts: 7
Joined: 04 Feb 2020, 07:17

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

Post by Merlincool » 13 Feb 2020, 19:29

Does this script has updates? Or can be updated?

Is it possible to grab episodes names from IMDb to pp file name? This would be great.

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

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

Post by hugbug » 19 Feb 2020, 23:45

This script uses info from file names, it doesn't communicate with web.

MuNZB
Posts: 1
Joined: 09 Sep 2020, 21:02

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

Post by MuNZB » 09 Sep 2020, 21:26

Hi I have my obfuscated files renamed using the %dn format or original directory name (nzb-name).

Many of these directory names/files have "obfuscated" in them. Is there a setting to remove this text from the file/folder name?

So videosort now creates a file like "Title-of-File-Obfuscated.xyz"
I want it to be renamed to "Title-of-File.xyz"

Thank you!

mouzzampk2014
Posts: 34
Joined: 13 Feb 2019, 02:23

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

Post by mouzzampk2014 » 10 Sep 2020, 19:47

Hi, I am running nzbget in docker and getting this error Post-process-script videosort/VideoSort.py for The.1995.720p.BluRay.DD5.1.x264-DON failed. I think its to do with Python version. Not sure how to fix this. Thank you

mouzzampk2014
Posts: 34
Joined: 13 Feb 2019, 02:23

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

Post by mouzzampk2014 » 11 Sep 2020, 17:23

mouzzampk2014 wrote:
10 Sep 2020, 19:47
Hi, I am running nzbget in docker and getting this error Post-process-script videosort/VideoSort.py for The.1995.720p.BluRay.DD5.1.x264-DON failed. I think its to do with Python version. Not sure how to fix this. Thank you
Thank you. Its fixed after downloading the python3 compatible videosort. Thanks

Departed
Posts: 25
Joined: 14 Oct 2017, 02:15

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

Post by Departed » 16 Sep 2020, 12:38

scroll1 wrote:
18 Nov 2019, 05:45
Hi,
I'm having trouble running the script in a docker on my unraid server.
The error message I get in the logs is:

Mon Nov 18 15:28:55 2019 INFO Executing post-process-script VideoSort/VideoSort.py for Panorama.S2018.E14.Getting.A.Fair.Trial.WEB-DL.x264-JIVE
Mon Nov 18 15:28:55 2019 INFO VideoSort: File "/data/scripts/VideoSort/VideoSort.py", line 814
Mon Nov 18 15:28:55 2019 INFO VideoSort: ep_prefix = episode_separator if episode_num_all <> '' else ''
Mon Nov 18 15:28:55 2019 INFO VideoSort: ^
Mon Nov 18 15:28:55 2019 INFO VideoSort: SyntaxError: invalid syntax
Mon Nov 18 15:28:55 2019 ERROR Post-process-script VideoSort/VideoSort.py for Panorama.S2018.E14.Getting.A.Fair.Trial.WEB-DL.x264-JIVE failed (terminated with unknown status)

The error points to the symbols <> before "else"
I'm running version 8 of the script
python v 2.7.16
and I have pip installed guessit

thanks for any help
Are there any specific version requirements for this script with Python 2? I have the script working perfectly on a machine at home, but I can't get it to work on my seedbox. I'm getting this same exact error.

I've been over the setup with my seedbox's support, and they are kind of stumped. The only difference we determined is that my home system has Python 2.7.16, but the seedbox has 2.7.13. Could this be causing a problem?

We've checked all dependencies (guessit, etc) and everything else is installed correctly. The only difference is the Python version.

Departed
Posts: 25
Joined: 14 Oct 2017, 02:15

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

Post by Departed » 23 Sep 2020, 02:26

@hugbug do you have any suggestions for my question above?

douche
Posts: 57
Joined: 08 Feb 2014, 23:50

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

Post by douche » 14 Jan 2021, 06:41

So, something that's "kind of" discussed on and off again is frustrating me once again.

VideoSort is having inconsistent behavior when it comes to obfuscated material. Below are 2 snippets of my job log, showing the result of the VideoSort script.

Example 1 (WORKING):

Code: Select all

VideoSort: Detected obfuscated filename WyVhNGqm0oi0QCNw4BJb6Kn9s6Ou9Dngv9EK1VOo9jiDp72xTVP4kg0.mkv, removing from guess path
VideoSort: Moved: E:\Proper-Series\S01\Proper-Title-From-NZB.mkv
but then this happens:

Example 2 (NOT WORKING):

Code: Select all

VideoSort: Detected obfuscated filename abd.mkv, removing from guess path
VideoSort: Moved: E:\Proper-Series\S01\abd.mkv
The VideoSort script clearly detects obfuscated content correctly, and actually sorts it correctly, but in the second example, it fails to use the proper title (as taken from the NZB), to rename the file.

I'm honestly confused quite confused.
- in both examples, I have the following SeriesFormat:

Code: Select all

%sn/S%0s/%fn
edit - before anyone suggest just using %dn
Many releases actually remove the episode title from the NZB name, but it's still there for the filename, and I'd rather keep the episode name.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests