Re: Rename.with.this.par2
Posted: November 14th, 2016, 5:38 pm
ik ben nu met nzb's bezig, waarbij het rename script van Delerium wèl werkt.
Code: Select all
/mnt/disk3/Movies/_DLs/_DL/e11df9679740f72eece50f36fda75d9c par2
total 1747672
drwxrwxrwx 2 abc users 4096 Nov 17 08:41 .
drwxr-xr-x 6 abc users 4096 Nov 17 08:41 ..
-rw-rw-rw- 1 abc users 16978469 Aug 20 09:50 2b55cc5dca9481492b730497881837033.mp4
-rw-rw-rw- 1 abc users 115 Nov 6 2013 Als eerste op Place2Home Torrents (Klik Hier).url
-rw-rw-rw- 1 abc users 115 Jul 25 19:36 Als eerste op Place2Home.net NZB's (Klik Hier).url
-rw-rw-rw- 1 abc users 1173766 Nov 11 2015 C.gif
-rw-rw-rw- 1 abc users 205 Nov 15 2015 Fan-Q-CLub-Forum.URL
-rw-rw-rw- 1 abc users 231692 Jun 15 23:39 Flyer Place2Home.net.jpg
-rw-rw-rw- 1 abc users 537002 Sep 22 15:58 P.png
-rw-rw-rw- 1 abc users 1894 Nov 17 08:41 QoQ.nfo
-rw-rw-rw- 1 abc users 61056 Nov 15 22:07 Rename.with.this.par2
-rw-rw-rw- 1 abc users 1770595638 Nov 15 21:41 b55cc5dca9481492b730497881837033.mkv
Found par file for rename: Rename.with.this.par2
Found biggest file in folder for rename: b55cc5dca9481492b730497881837033.mkv
Running command: par2 r Rename.with.this.par2 b55cc5dca9481492b730497881837033.mkv
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
Modifications for concurrent processing, Unicode support, and hierarchial
directory support are Copyright (c) 2007-2015 Vincent Tan.
Concurrent processing utilises Intel Thread Building Blocks 4.3 Update 1,
Copyright (c) 2007-2014 Intel Corp.
Executing using the x64 (64-bit) instruction set.
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.
Processing verifications and repairs concurrently using up to 8 logical CPUs.
Loading "Rename.with.this.par2".
Loaded 6 new packets
There are 2 recoverable files and 0 other files.
The block size used was 591976 bytes.
There are a total of 3020 data blocks.
The total size of the data files is 1787574107 bytes.
Verifying source files:
Target: "Lethal.Weapon.S01E06.1080p.WEB-DL.DD5.1.H.264.NLSubs-QoQ.mkv" - missing.
Target: "Q o Q.mp4" - missing.
Scanning extra files:
Scanning: "b55cc5dca9481492b730497881837033.mkv": 0.1%
Scanning: "b55cc5dca9481492b730497881837033.mkv": 1.0%
..
Scanning: "b55cc5dca9481492b730497881837033.mkv": 98.2%
Scanning: "b55cc5dca9481492b730497881837033.mkv": 99.1%
File: "b55cc5dca9481492b730497881837033.mkv" - is a match for "Lethal.Weapon.S01E06.1080p.WEB-DL.DD5.1.H.264.NLSubs-QoQ.mkv".
Repair is required.
1 file(s) have the wrong name.
1 file(s) are missing.
You have 2991 out of 3020 data blocks available.
Repair is not possible.
You need 29 more recovery blocks to be able to repair.
Completed
Code: Select all
par2 r $parfile $moviefile
Code: Select all
par2 r $parfile *
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: par2 r $parfile *"
par2 r $parfile *
else
echo "Completed, no par file for rename found"
fi
echo "Completed"
Code: Select all
2017-11-28 16:33:08,600::INFO::[newsunpack:173] Running external script /<USERNAME>/Sabnzb/test/ParRename .sh(/<USERNAME>/Sabnzb/Complete/<HASH>9b2cac5.2, <HASH>9b2cac5.nzb, <HASH>9b2cac5, , *, alt.binaries.boneless, 0, )
2017-11-28 16:33:08,709::DEBUG::[newsunpack:202] Failed script /<USERNAME>/Sabnzb/test/ParRename .sh, Traceback:
Traceback (most recent call last):
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/sabnzbd/newsunpack .py", line 176, in external_processing
startupinfo=stup, env=env, creationflags=creationflags)
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/subprocess .py", line 710, in __init__
errread, errwrite)
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/subprocess .py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Code: Select all
2017-11-28 17:29:37,822::DEBUG::[misc:1542] Applying permissions 0755 (octal) to /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3
2017-11-28 17:29:37,823::DEBUG::[misc:1542] Applying permissions 0644 (octal) to /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5.3/Rename .with .this .par2
2017-11-28 17:29:37,823::DEBUG::[misc:1542] Applying permissions 0644 (octal) to /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3/C. gif
2017-11-28 17:29:37,823::DEBUG::[misc:1542] Applying permissions 0644 (octal) to /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3/<HASH>4662da3 .mp4
2017-11-28 17:29:37,823::DEBUG::[misc:1542] Applying permissions 0644 (octal) to /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3/P .png
2017-11-28 17:29:37,823::DEBUG::[misc:1542] Applying permissions 0644 (octal) to /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3/<HASH>a4662da3 .mkv
2017-11-28 17:29:37,824::DEBUG::[misc:1058] Renaming "/<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3" to "/<USERNAME>/Sabnzb/Complete/<HASH>9b2cac5 .3"
2017-11-28 17:29:37,913::DEBUG::[misc:1142] [sabnzbd.postproc.rename_and_collapse_folder] Deleting dir /<USERNAME>/Sabnzb/Complete/_UNPACK_<HASH>9b2cac5 .3
2017-11-28 17:29:37,971::INFO::[newsunpack:173] Running external script /<USERNAME>/Sabnzb/test/Deobfuscate .py(/<USERNAME>/Sabnzb/Complete/<HASH>9b2cac5.3, <HASH>9b2cac5.nzb, <HASH>9b2cac5, , *, alt.binaries.boneless, 0, )
2017-11-28 17:29:38,141::DEBUG::[newsunpack:202] Failed script /<USERNAME>/Sabnzb/test/Deobfuscate .py, Traceback:
Traceback (most recent call last):
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/sabnzbd/newsunpack .py", line 176, in external_processing
startupinfo=stup, env=env, creationflags=creationflags)
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/subprocess .py", line 710, in __init__
errread, errwrite)
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/subprocess .py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory