Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new feature req.: Password include into Filename #143

Open
ORGATHM opened this issue May 22, 2016 · 0 comments
Open

new feature req.: Password include into Filename #143

ORGATHM opened this issue May 22, 2016 · 0 comments

Comments

@ORGATHM
Copy link

ORGATHM commented May 22, 2016

hello,

maybe its possible to insert a little funktion, to insert a password to the xxx.nzb file.
my first idea was, to scan the clipboard for a string between 2-32 chars.
is the clipboard loaded with a string like this, auto append to filename "{{clipboard}}"
unfortunely i have no java skills. in php it will look like this:

if(is_string($clipboard)&&strlen($clipboard)>1&&strlen($clipboard)<33) //check type of clipboard and length between 2-32 chars
{
$cleanname=explode(".nzb",strtolower ($filename)); // convert filename to lower chars, split filename
$filename=$cleanname[0]."{{".$clipboard."}}.nzb"; // take filename without ".nzb",append {{password}}.nzb
}

this is is an quick and dirty solution and may irritate the sabnzbd, because it will insert
any text content of the clipboard as a password and it will try to decode it.

a better solution would be, a little popup dialog, with two textfields + kategory selector.
in the first text field is the original nzb name. (may corrected by user)
and the second textfield is available to insert the password.
if the second field filled with text, it will append the pass after the filename like:
filename = first.input.field + "{{" + second.input.field + "}}.nzb"

this has 2 advantages.
1st, sabnzbd will automatcly extract files from sites, with passwords but nzb filename without {{}} tags.
2nd,if i share the nzb file later to friends, they could extract automaticly, without googeling for the pass.

thanks for your interesting.

Dirk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant