blauwbek / pysabrename Goto Github PK
View Code? Open in Web Editor NEWpySabRename, the solution for all your renaming requests
pySabRename, the solution for all your renaming requests
Hi!
When I look in the logging I see:
+Renaming process+
Found: 03aeb136da5674006173ddb8d57223bd.mkv
Old name: /volume1/media/Movies/The Martian (2015) x264 720p Bluray DD5_1 + DTS NLSubs -Q o Q-/db32275d8bdd3716004765ad631bea30/03aeb136da5674006173ddb8d57223bd.mkv
Found extension! (.mkv)
Extention supported! .mkv
New name: /volume1/media/Movies/The Martian (2015) x264 720p Bluray DD5_1 + DTS NLSubs -Q o Q-/The Martian (2015) x264 720p Bluray DD5_1 + DTS NLSubs -Q o Q-.mkv
But when I look at my disk I see:
The Martian (2015) 720p HQ AC3 DD5.1 (Ingebakken Subs).avi
Is this some kind of bug? (This is the only post-process I run.)
The content of pySR.cfg:
[Static]
vidext=.mkv,.avi,.mp4,.3gp,.divx,.flv,.mpg,.m4v,.mov,.mpeg,.swf,.wmv,.iso
subext=.idx,.sub,.srt
[sabnzbd]
moviecat=movies
tvcat=tv sick beard
[tv]
cleanup=yes
sickbeard=no
[movies]
Btw: I am using Python 2.7.9
Hi
Hope you can help, I have used the script for years without issue on NZBGet, but I had to reinstall windows, now when I run the script it fails.
error Thu Apr 11 2019 06:38:09 Post-process-script pySabRename\pySabRename_nzbget_win.py for NZBNAME failed (terminated with unknown status) info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: WindowsError: [Error 3] The system cannot find the path specified info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: os.rename(old_name, new_file) info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: File "C:\ProgramData\NZBGet\scripts\pySabRename\pySabRename_nzbget_win.py", line 93, in <module> info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: Traceback (most recent call last): info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: New name: C:\ProgramData\NZBGet\complete\Other\NZBNAME\NZBNAME.mp4 info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: Extention supported! .mp4 info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: Found extension! (.mp4) info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: Old name: C:\ProgramData\NZBGet\complete\Other\NZBNAME\HASH.mp4 info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: Found: HASH.mp4 info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: +Renaming process+ info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: Searching dir: C:\ProgramData\NZBGet\complete\Other\NZBNAME info Thu Apr 11 2019 06:38:09 pySabRename_nzbget_win: pySabRename info Thu Apr 11 2019 06:38:09 Executing post-process-script pySabRename\pySabRename_nzbget_win.py for NZBNAME
any ideas what I have missed to get it working again?
Thanks!
Hi,
is it also possible to use it in NZBget?
When I manually kickof the pySabRename script on a succesfully downloaded file, I get the next error message:
pySabRename
Searching dir:
/var/flexshare/shares/downloads/incoming/9e6c2deef0f7b8cc364246b394201814.rar
Searching dir: /var/flexshare/shares/downloads/incoming/9e6c2deef0f7b8cc364246b394201814.rar/76d6896d3283687edee42de65ff20503
Searching dir: /var/flexshare/shares/downloads/incoming/9e6c2deef0f7b8cc364246b394201814.rar/76d6896d3283687edee42de65ff20503/Usenet
+Renaming process+
Found: QoQ-sbuSLN.462.H.1.5DD.LD-BEW.p0801.20E50S.yrotS.rorroH.naciremA.mkv
Old name: /var/flexshare/shares/downloads/incoming/9e6c2deef0f7b8cc364246b394201814.rar/76d6896d3283687edee42de65ff20503/QoQ-sbuSLN.462.H.1.5DD.LD-BEW.p0801.20E50S.yrotS.rorroH.naciremA.mkv
Traceback (most recent call last):
File "./pySabRename_unix.py", line 77, in <module>
print 'Found extension! ({})'.format(ext)
ValueError: zero length field name in format
I call the script on my CentOS 6 system like this:
./pySabRename_unix.py /downloads/incoming/9e6c2deef0f7b8cc364246b394201814.rar 9e6c2deef0f7b8cc364246b394201814.rar.nzb 9e6c2deef0f7b8cc364246b394201814.rar 123 series alt.binaries.boneless 0
Hi,
today I wanted to setup your script.
I did everything mentioned in the readme, but I get the following error messages shown in SABNZBD for every QOQ release I download:
Found extension! (.mkv)
processing par2 file f:\SABnzbd\BROOKLYN Nine-Nine (2015) S03E11 H.264 (WEB-DL) DD5.1 1080p NLSubs -Q o Q-\a8c8c046aefe0145ef15dde8479eb8f1\Rename.With.This.par2
Traceback (most recent call last):
File "D:\SABNZBD_Scripts\pySabRename_win.py", line 107, in
R=subprocess.call(['par2.exe','r','-q',par_file,'_'],cwd=dir_name)
File "C:\Python27\lib\subprocess.py", line 522, in call
return Popen(_popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] Het systeem kan het opgegeven bestand niet vinden
Further info/details:
Am I doing something wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.