Fix qBittorrent WebUI API compat and season-folder placement in library scan

qBittorrent's newer WebUI API returns 204 (not 200 "Ok.") on login success,
and a JSON success/failure summary (not plain "Ok."/"Fails." text) from
torrents/add — both broke against the currently deployed version. Also had
scan_tv_root move already-tracked episode files into their Season NN
subfolder instead of just recording wherever they already sat on disk.
This commit is contained in:
Breadway 2026-07-21 19:17:42 +08:00
parent 9d8a59e3a8
commit 54818f5f05
3 changed files with 61 additions and 12 deletions

View file

@ -927,11 +927,12 @@ async fn debug_scan_tv(config: &Config, path: &str) -> Result<()> {
.await?;
println!(
"matched={} unmatched={} files_linked={} files_renamed={}",
"matched={} unmatched={} files_linked={} files_renamed={} files_reorganized={}",
report.matched.len(),
report.unmatched.len(),
report.files_linked,
report.files_renamed
report.files_renamed,
report.files_reorganized
);
if !report.unmatched.is_empty() {
println!("unmatched:");
@ -974,11 +975,12 @@ async fn debug_scan_movies(config: &Config, path: &str) -> Result<()> {
.await?;
println!(
"matched={} unmatched={} files_linked={} files_renamed={}",
"matched={} unmatched={} files_linked={} files_renamed={} files_reorganized={}",
report.matched.len(),
report.unmatched.len(),
report.files_linked,
report.files_renamed
report.files_renamed,
report.files_reorganized
);
if !report.unmatched.is_empty() {
println!("unmatched:");