Reverse Episode Filename

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.
Post Reply
prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

Reverse Episode Filename

Post by prinz2311 » 28 Apr 2014, 20:16

Since some release groups simply reverse the Filenname of an Episode, I made a PP-Script to reverse it back. Simply put it before your nzbtoSickbeard pp-script.

https://github.com/Prinz23/nzbget-pp-reverse

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

Re: Reverse Episode Filename

Post by TRaSH » 06 May 2014, 19:20

nice working script,
i reported a issue/request on your git

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

Re: Reverse Episode Filename

Post by prinz2311 » 14 May 2014, 18:35

Garbage (alphanum char sequence) Videofilenames now will be renamed to the Dirname if only one videofile is in the Dir and the Dirname is detected as a valid Releasename.

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

Re: Reverse Episode Filename

Post by TRaSH » 15 May 2014, 20:51

thnx,
it's now solved with nzbToMedia (with your help)

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

Re: Reverse Episode Filename

Post by prinz2311 » 06 Jan 2015, 21:30

Reduced the minimum garbage filename detection to 3 chars to support the now common: 123.ext, abc.ext files (renamed to Dirname)

yawkyawk
Posts: 7
Joined: 22 Sep 2015, 23:36

Re: Reverse Episode Filename

Post by yawkyawk » 22 Sep 2015, 23:44

Script works great but is it possible to get it to scan nested folders? At the moment I need to manually move the file to the first directory and then run post process again. Thanks

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

Re: Reverse Episode Filename

Post by prinz2311 » 24 Jan 2016, 00:33

Added support for subfolders and improved unicode support.

Caveman
Posts: 1
Joined: 09 Mar 2016, 09:36

Re: Reverse Episode Filename

Post by Caveman » 09 Mar 2016, 09:46

Great !
I'm just intressed in the part were the garbled file is renamed to the dir name, and that works great. So thumbs up.

The only thing that gave me some troubles was the first line in the script. For my syno the path to python is completely different, so i had to change it into the right path and then it works fine. #!/opt/bin/python2.7 (in my case)

juliem
Posts: 6
Joined: 27 Feb 2016, 07:42

Re: Reverse Episode Filename

Post by juliem » 04 Oct 2018, 17:28

@prinz2311 I had this working fine in a Linux machine, I moved NZBGet to Windows 10 and the script shows up but it never works. When I check the post process list it's always greyed out, the other scripts are green.

I checked the logs and it doesn't seem to mention this script at all, any ideas?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests