Opened 16 years ago
Last modified 7 years ago
#367 new feature-request
Do not store per-torrent settings that are saved in the resume data
Reported by: | andar | Owned by: | andar |
---|---|---|---|
Priority: | trivial | Milestone: | 2.x |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Since libtorrent now stores certain per-torrent settings in the resume data, we no longer need to save this data in the state file.
Change History (8)
comment:1 by , 16 years ago
Milestone: | 1.1.0 |
---|
comment:2 by , 15 years ago
Milestone: | → 1.2.0 |
---|
comment:3 by , 15 years ago
Milestone: | 1.2.0 → Future |
---|---|
Version: | 1.1.0_dev |
comment:4 by , 15 years ago
Type: | bug → feature-request |
---|
comment:5 by , 14 years ago
Priority: | major → trivial |
---|
comment:6 by , 11 years ago
Milestone: | Future → 1.4.0 |
---|
These can be removed without any major issue,
torrent_status["last_seen_complete"] torrent_status["total_uploaded"], torrent.trackers
These would require updating options
from either bdecoded resume_data
or handle.status
torrent.options["compact_allocation"], torrent.options["max_connections"], torrent.options["max_upload_slots"], torrent.options["max_upload_speed"], torrent.options["max_download_speed"], torrent.options["sequential_download"], torrent.options["file_priorities"], torrent.options["auto_managed"],
torrent.time_added
could be replaced by lt torrent status added_time
torrent.is_finished
could be updated using lt torrent status completed_time
but need to verify the reason for original addition [f769429e] and whether still required.
For reference the entire resume data file format for 0.16 (currently lt docs are outdated):
file-format file-version info-hash blocks per piece pieces slots total_uploaded total_downloaded active_time seeding_time num_seeds num_downloaders upload_rate_limit download_rate_limit max_connections max_uploads seed_mode file_priority piece_priority auto_managed sequential_download paused trackers mapped_files url-list httpseeds merkle tree peers unfinished file sizes allocation added_time announce_to_dht announce_to_lsd announce_to_trackers banned_peers banned_peers6 completed_time finished_time last_download last_scrape last_seen_complete last_upload libtorrent-version num_incomplete peers6 super_seeding uuid url feed info
Milestone 1.1.0 deleted