rar password extraction from filename

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.
Post Reply
flower
Newbie
Newbie
Posts: 2
Joined: July 23rd, 2018, 5:01 pm

rar password extraction from filename

Post by flower »

hi,

very often i have nzb files which contains the same password two times:

eg. filename_{{pwd}}_{{pwd}}.nzb

sabnzb tries to extract the received rar files with the password: "pwd}}_{{pwd"

ist there an easy way to change this behavior to force sabnzb to only use pwd? in my case the passwords inside the curly brackets are always identic

regards and thank you very much for this tool!
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: rar password extraction from filename

Post by safihre »

We search for the first and last occurrence, just in case maybe {{ or }} are in the password.
You could write a pre-queue script to fix this :) Or where do you get these NZB's? :P
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: rar password extraction from filename

Post by jcfp »

Seems like an indexer bug first and foremost, would be nice to know which one does this.

A simple regex in a pre-queue script can eliminate the surplus password(s), as long as you don't mind the side effects when the actual password itself contains certain sequences involving {{ and }}:

Code: Select all

echo 'nzbname here' | sed 's/}}_{{.\+}}$/}}/'
flower
Newbie
Newbie
Posts: 2
Joined: July 23rd, 2018, 5:01 pm

Re: rar password extraction from filename

Post by flower »

jcfp wrote: July 24th, 2018, 9:20 am Seems like an indexer bug first and foremost, would be nice to know which one does this.

A simple regex in a pre-queue script can eliminate the surplus password(s), as long as you don't mind the side effects when the actual password itself contains certain sequences involving {{ and }}:

Code: Select all

echo 'nzbname here' | sed 's/}}_{{.\+}}$/}}/'
well it kinda is... the site insits on adding the password to the filename but some users upload them with the pwd already inside.

thank you.. will try
Post Reply