批处理脚本依赖于 qBitTorrent 的过时 .unwanted 目录

huangapple go评论75阅读模式
英文:

Batch script dependent on qBitTorrent's obsolete .unwanted directory

问题

我有这个脚本,持续监视Downloads目录以查看已完成的下载。用于填充此目录的众多程序之一是qBitTorrent。如果它们不包括任何.!qB临时文件,它会确定种子子目录是否已完成。现在,如果来自种子的某些文件未被选中/跳过下载,那么这些永远不完整的.!qB文件曾经会进入.unwanted目录,只需删除即可确定此情况。但在v4.3.0之后,.unwanted目录被删除了,现在跳过的文件将永远看起来正在进行中,因此脚本将永远无法判断种子是否已完成,使我的整个脚本失效。

我究竟该怎么办才能解决这个问题?

英文:

I have this script that continuously monitors a Downloads directory for completed downloads. One of many programs used to populate this directory is qBitTorrent. It determines the torrent subdirectories as complete if they do not include any .!qB temp files. Now if some of the files from the torrent were unchecked/skipped from downloading then the forever incomplete .!qB files used to go to the .unwanted directory which could simply be deleted to determine this, but after v4.3.0 the .unwanted directory was dropped and now the skipped files will forever look like they are in progress so the torrent will never appear complete to the script, rendering my entire script defective.

What in the world could I do to get around this?

答案1

得分: 1

你可以配置客户端,将正在进行的种子数据保存在不同的目录中,只有在种子完成后才将其移动到下载目录。这样,你的脚本只会在下载完成后才注意到它。

英文:

You can configure the client to keep in-progress torrent data a diffent directory and only move it to the download directory once a torrent is finished.

This way your script will only notice the download once it's complete.

huangapple
  • 本文由 发表于 2023年4月13日 19:40:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76004993.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定