Giter VIP home page Giter VIP logo

Comments (7)

stalkerok avatar stalkerok commented on May 27, 2024

Are you sure you are describing the issue correctly? One and the same torrent cannot be private and public, only if it is two different torrents (with different hash).

from qbittorrent.

yegle avatar yegle commented on May 27, 2024

The workaround I used was to download the torrent file again and add it to qBittorent.

Despite getting an error in the log:

Detected an attempt to add a duplicate torrent. Merging of trackers is disabled. Torrent: xxx

The torrent magically becomes private torrent again (DHT/PeX/LSD disabled with a "this torrent is private" message).

from qbittorrent.

yegle avatar yegle commented on May 27, 2024

Are you sure you are describing the issue correctly? One and the same torrent cannot be private and public, only if it is two different torrents (with different hash).

It suddenly became public from what I can tell (using the DHT/PeX/LSD message). Unfortunately due to #14771 I can't be 100% sure.

And the libtorrent code doesn't lie, it indeed uses the special curl/7.81.0 user agent when anonymous mode is enabled and the torrent is considered "public".

from qbittorrent.

yegle avatar yegle commented on May 27, 2024

And given the workaround I tried (used the workaround twice and fairly certain it does work), the "public" torrent in the queue and the private torrent file I downloaded again should have the same hash (or I won't see the log line).

from qbittorrent.

stalkerok avatar stalkerok commented on May 27, 2024

Perhaps the torrent is hybrid and that plays a role too.

from qbittorrent.

yegle avatar yegle commented on May 27, 2024

Oh there's another symptom that I suspect is relevant.

When this happened to one of my torrents today, I was trying to confirm if the torrent file contains the "private" bit. But looking at the BT_backup folder, I can only find $HASH.fastresume file (the bencode decoded content is in the first comment) and there was no $HASH.torrent file.

After I tried the workaround of downloading and importing the torrent file, I now can find the $HASH.torrent file in BT_backup folder.

This is potentially relevant because tracker_req().private_torrent is set to false around https://github.com/arvidn/libtorrent/blob/8a7aa8311387b8d530a2ec2a3eb5974fec5edb64/src/http_tracker_connection.cpp#L247-L249, and the .private_torrent field seem to be set from m_torrent_file.priv() (e.g. https://github.com/arvidn/libtorrent/blob/8a7aa8311387b8d530a2ec2a3eb5974fec5edb64/src/torrent.cpp#L3011).

from qbittorrent.

stalkerok avatar stalkerok commented on May 27, 2024

A .torrent file cannot disappear by itself. In any case, need steps to reproduce the issue.

from qbittorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.