Closed alexlitvinenko closed 4 years ago
add_torrent
will suffice.unwanted
probably needs to be renamed into something more neutral like excluded
.And another thing I want you to ask, before we move further: I'm now in the middle of https://github.com/idlesign/torrt/tree/feat/types let's wait when it's landed in master
, because there are many lines changed and it's better to wait to not to have conflicts.
I'm also thinking about magnet
support, so we'd probably need to think how all that stuff we've mentioned should fit together.
I've merged type annotations: there are some corner cases but overal it's ready.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
torrt/rpc/deluge.py | 1 | 2 | 50.0% | ||
torrt/rpc/qbittorrent.py | 1 | 2 | 50.0% | ||
torrt/rpc/utorrent.py | 1 | 2 | 50.0% | ||
torrt/rpc/transmission.py | 2 | 19 | 10.53% | ||
<!-- | Total: | 8 | 28 | 28.57% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
torrt/rpc/transmission.py | 1 | 28.24% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 95: | -0.6% |
Covered Lines: | 773 |
Relevant Lines: | 1471 |
Something more advanced has been done in deluge-updatorr.
I switched from deluge to transmission because default deluge API doesn't support 'excluded files'.
I'm worried about results stability, since, as you've mentioned files may change names etc.
The following cases will not work:
I'm also not sure whether we should have a separate RPC method, may be enhanced add_torrent will suffice.
Enhanced. See my comment.
And unwanted probably needs to be renamed into something more neutral like excluded.
Done. I took "unwanted" from transmission initially.
Sorry for the delay. Thank you. Merged.
Torrt always recreate a torrent and as a result doesn't preserve list of files that a user marked as "do not download".