rename.par2 not been processed

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: rename.par2 not been processed

Post by sander »

PS:

The 'par2' seems a bit time and CPU consuming as there is an alternative to find the meant name:

Code: Select all

strings rename.par2 | grep -A3 FileDesc | grep -B1 -e "^PAR2$" | sort -u | grep -vi -e "^--$" -e "^PAR2$"
So a "mv" of the biggest file to that name should be enough. :)
mastyman
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2012, 9:57 pm

Re: rename.par2 not been processed

Post by mastyman »

here is a windows script i just saw..

http://forums.sabnzbd.org/viewtopic.php?f=9&t=20730
mastyman
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2012, 9:57 pm

Re: rename.par2 not been processed

Post by mastyman »

lately they are now called Rename.With.This.par2 instead of rename.par2
Delerium
Newbie
Newbie
Posts: 3
Joined: May 18th, 2016, 2:31 pm

Re: rename.par2 not been processed

Post by Delerium »

I have resolved this with the following script:

Code: Select all

#! /bin/bash

cd "$1"
pwd
ls -al

parfile=$(find . -regex ".*\.\(par2\)" -printf "%f\n")
moviefile=$(ls -1S | head -n 1)

if [ ! -z "$parfile" ]; then
	echo ""
	echo "Found par file for rename: $parfile"
	echo "Found biggest file in folder for rename: $moviefile"
	echo ""

	echo "Running command: /volume1/@appstore/sabnzbd/bin/par2 r $parfile $moviefile"

	/volume1/@appstore/sabnzbd/bin/par2 r $parfile $moviefile
else
	echo "Completed, no par file for rename found"
fi

echo "Completed"
Save this script as ParRename.sh in the SABnzbd script folder, chmod the file to 755 so execution is possible.
Changes in SABnzbd settings:
- Settings > Switches > Enable the tickbox for: Ignore any folders inside archives
- Settings > Categories > Enable postprocessing script

The script checks if there is a PAR file (any name will go) in the extraction folder, if there is it will get the biggest file in the folder and assume this is the movie.
The parfile and the moviefile will be offered to the par2 parser used in SABnzbd and will rename the movie.

Example output:

Code: Select all

Output from user script "ParRename.sh" (Exit code = 0):
/volume1/Downloads/complete/NameOfSeries (2015) S04E05 XViD DD5.1 NLSubs -Q o Q-
total 478116
drwxrwxrwx 2 sabnzbd users      4096 Jul 15 18:30 .
drwxrwxrwx 6 sabnzbd users      4096 Jul 15 18:30 ..
-rw-rw-rw- 1 sabnzbd users       115 Nov  6  2013 Als eerste op Place2Home Torrents (Klik Hier).url
-rw-rw-rw- 1 sabnzbd users       223 May 30  2015 Fan-Q-CLub-ChatBox.url.URL
-rw-rw-rw- 1 sabnzbd users       205 Nov 15  2015 Fan-Q-CLub-Forum.URL
-rw-rw-rw- 1 sabnzbd users 486696190 Jul 12 20:28 fd6b46cc984632d77cde341a0a41c121.avi
-rw-rw-rw- 1 sabnzbd users    231692 Feb 29  2012 Flyer Place2Home.net.jpg
-rw-rw-rw- 1 sabnzbd users       115 Nov  6  2013 Place2Home Torrents (Klik Hier).url
-rw-rw-rw- 1 sabnzbd users       186 Nov 15  2015 Place2Home Usenet.url
-rw-rw-rw- 1 sabnzbd users    444297 Jun  4 12:15 P.png
-rw-rw-rw- 1 sabnzbd users    486785 Feb 28 20:40 QoQ-iNFO (DoubleClick Here).chm
-rw-rw-rw- 1 sabnzbd users      1894 Jul 15 18:29 QoQ.nfo
-rw-rw-rw- 1 sabnzbd users     44584 Jul 12 21:35 Rename.With.This.par2
-rw-rw-rw- 1 sabnzbd users   1173766 May 11  2013 T.gif
-rw-rw-rw- 1 sabnzbd users    465708 Jun  3  2012 Usenet Provider Newsconnection.nl.jpg
-rw-rw-rw- 1 sabnzbd users       178 May 12  2014 Usenet Provider Newsconnection.nl.url

Found par file for rename: Rename.With.This.par2
Found biggest file in folder for rename: fd6b46cc984632d77cde341a0a41c121.avi

Running command: /volume1/@appstore/sabnzbd/bin/par2 r Rename.With.This.par2 fd6b46cc984632d77cde341a0a41c121.avi
/volume1/@appstore/sabnzbd/bin/par2: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/sabnzbd/bin/par2)
/volume1/@appstore/sabnzbd/bin/par2: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/sabnzbd/bin/par2)
/volume1/@appstore/sabnzbd/bin/par2: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/sabnzbd/bin/par2)
/volume1/@appstore/sabnzbd/bin/par2: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/sabnzbd/bin/par2)
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.

par2cmdline comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.

Loading "Rename.With.This.par2".
Loading: 0.3%
Loading: 99.6%
Loading: 99.8%
Loaded 4 new packets

There are 1 recoverable files and 0 other files.
The block size used was 220424 bytes.
There are a total of 2208 data blocks.
The total size of the data files is 486696190 bytes.

Verifying source files:

Target: "NameOfSeries.S04E05.XViD.DD5.1.NLSubs-QoQ.avi" - missing.

Scanning extra files:

Scanning: "fd6b46cc984632d77cde341a0a41c121.avi": 0.1%
Scanning: "fd6b46cc984632d77cde341a0a41c121.avi": 0.2%
{...}
Scanning: "fd6b46cc984632d77cde341a0a41c121.avi": 99.9%
File: "fd6b46cc984632d77cde341a0a41c121.avi" - is a match for "NameOfSeries.S04E05.XViD.DD5.1.NLSubs-QoQ.avi".

Repair is required.
1 file(s) have the wrong name.
You have 2208 out of 2208 data blocks available.
Repair is possible.


Repair complete.
Completed

blackkatt
Newbie
Newbie
Posts: 49
Joined: July 6th, 2011, 6:03 am

Re: rename.par2 not been processed

Post by blackkatt »

mastyman wrote:here is a windows script i just saw..

http://forums.sabnzbd.org/viewtopic.php?f=9&t=20730
Are you having problems with the script?
The Problem is not the problem. The problem is your attitude about the problem.
Do you understand?
fred44nl
Newbie
Newbie
Posts: 27
Joined: October 28th, 2016, 7:51 am

Re: rename.par2 not been processed

Post by fred44nl »

Delerium wrote: Save this script as ParRename.sh in the SABnzbd script folder, chmod the file to 755 so execution is possible.
Changes in SABnzbd settings:
- Settings > Switches > Enable the tickbox for: Ignore any folders inside archives
- Settings > Categories > Enable postprocessing script
I have saved the script and tried to change the mentioned settings.
however, I don't have "Ignore any folders inside archives".
may be this is because I am running a headless Raspberry Pi with Sabnzbd+ version 0.7.18
does this make sense ??

edit:
I changed the path to the par2 executable and tried the script manually.
unfortunately the <funny-name>.mkv was not renamed.
the complained is "You need 2545 more recovery blocks to be able to repair".
but I'm sure QuickPar can do this without any problems.
Post Reply