You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: