I'm looking for the syntax of the Downloads\ScanDirsV2 line in the qBittorrent.conf file.
What I specifically want to do is to clone a server. Everything would be exactly the same on both servers, except for the hostname and IP address. (Actually, I already do this, very successfully. But now I'm trying to add qBittorrent to the mix.)
Everything in qBittorrent should be the same, except for the monitored folder, which is on a nas drive, with the server name as part of the folder name. (This way, I can download files from one or both server at the same time me.)
I know that there is a crazy encoding scheme for the folder names (some characters are represented with their ascii values, some are not). For example, by playing around with it, I know that:
"serverabc"="\0s\0\x65\0r\0v\0\x65\0r\0\x61\0\x62\0\x63"
"serverxyz"="\0s\0\x65\0r\0v\0\x65\0r\0x\0y\0z"
But there is additional encoding in that line, such as whether the files get dropped in the monitored folder or the default save location. Since both servers should do the same thing, I'm okay with whatever that is.
BUT, there is apparently more stuff encoded there. If I make a "simple" substitution, restart qBittorrent, and look at it in a browser, sometimes it does what I want, sometimes the directory is there but the "override save location" is blank, and sometimes there is no monitored folder at all. And if I change it in the browser and look at the conf file, sometimes strings in the middle of the line have (randomly) changed.
So, is this documented anywhere? I don't care how crazy the rules are, if I only know what they are.
what is the syntax of Downloads\ScanDirsV2 in qBittorrent.conf?
Re: what is the syntax of Downloads\ScanDirsV2 in qBittorrent.conf?
I have replied to you on Reddit. The syntax as of 5.0.2 is human readable and is kept in a JSON file.