qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.84k stars 3.87k forks source link

RSS Downloader sometimes download the same torrents twice #18436

Open fireattack opened 1 year ago

fireattack commented 1 year ago

qBittorrent & operating system versions

qBittorrent: 4.5.0 x64 Operating system: Windows 10 22H2 (10.0.19045) Qt: 5.15.7 libtorrent-rasterbar: 1.2.18

What is the problem?

Sometimes, QB will try to re-download torrents from RSS downloader that I have downloaded before.

The timeline is like this:

Below is a real-world example I copied from log.

(N) 2023-01-21T23:32:30 - RSS feed at '{RSS URL}' updated. Added 1 new articles.
(N) 2023-01-21T23:32:30 - Added new torrent. Torrent: "{YYY}.mp4"
...
(N) 2023-01-22T00:04:21 - Torrent download finished. Torrent: "{YYY}.mp4"
...
(N) 2023-01-22T01:06:08 - Removed torrent. Torrent: "{YYY}.mp4"
...
(N) 2023-01-22T21:45:07 - RSS feed at '{RSS URL}' updated. Added 0 new articles.
(N) 2023-01-22T21:45:08 - Added new torrent. Torrent: "{YYY}.mp4"

Steps to reproduce

Not reliably reproducible, but see above.

Additional context

I only started to encounter this bug recently, for what it's worth.

Log(s) & preferences file(s)

qBittorrent.ini.txt

developer-wlj commented 1 year ago

I'm in a similar situation to you

qBittorrent & operating system versions

The timeline is like this:

Personal guesswork, used to flag that the completed download of the profile is corrupted, resulting in repeated downloads

fireattack commented 7 months ago

This issue occurs when you subscribe to two RSS feeds with overlapping content.

For example, if you add a category from an RSS source along with an uploader from the same source, there are instances where both feeds may include the same torrent.

The process unfolds as follows:

When the RSS downloader identifies a new torrent available in both subscriptions, it proceeds to download it from one while ignoring the other to avoid creating a duplicate task. However, qBitTorrent still somehow marks the ignored duplicate as "not attempted."

Consequently, if you download a torrent and later delete it, then restart qBitTorrent, it mistakenly believes the torrent (specifically the ignored duplicate) was never downloaded and attempts to download it again.

This behavior is a regression that started around version 4.5.0 or the corresponding version of libtorrent. This issue was not present in previous versions.