Ravencentric / juicenet-cli

CLI tool designed to simplify the process of uploading files to Usenet
https://juicenet.ravencentric.cc/
The Unlicense
14 stars 2 forks source link

Password NZBs #74

Closed Sp5rky closed 5 months ago

Sp5rky commented 5 months ago

I've attempted to add into my nyuu.private.json

    " *** NZB Options *** ":0,
    "out":                "{filename}.nzb",
    "overwrite":          true,
    "nzb-subject":        "[{filenum}/{files}] - \"{filename}\" yEnc ({part}/{parts}) {filesize}",
    "nzb-password":       "${rand(15)}",

But checking the header of the NZB it just shows it as pure text and not a randomly generated password, other functions of the generation worked fine.

<!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.1//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.1.dtd">
<nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">
    <head>
        <meta type="password">${rand(15)}</meta>
    </head>

two attempted names of nzb-password but if I tried just doing "password" nyuu thought it was part of the NNTP login so got

[2024-04-17 12:16:01.999][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
[2024-04-17 12:16:01.999][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
[2024-04-17 12:16:02.000][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
[2024-04-17 12:16:02.000][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
Ravencentric commented 5 months ago

This isn't a juicenet thing. That's entirely nyuu's doing. Nyuu doesn't support the ${rand(N)} token in nzb-password