From 8ee5cee8c304ea573d75e69afe9950c3733833e4 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 5 Sep 2022 10:50:22 -0300 Subject: [PATCH] update flags, set sequential as a flag --- lbry/torrent/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/torrent/session.py b/lbry/torrent/session.py index 713d82039..27bd4c783 100644 --- a/lbry/torrent/session.py +++ b/lbry/torrent/session.py @@ -14,6 +14,8 @@ log = logging.getLogger(__name__) DEFAULT_FLAGS = ( # fixme: somehow the logic here is inverted? libtorrent.add_torrent_params_flags_t.flag_auto_managed | libtorrent.add_torrent_params_flags_t.flag_update_subscribe + | libtorrent.add_torrent_params_flags_t.flag_sequential_download + | libtorrent.add_torrent_params_flags_t.flag_paused ) @@ -31,7 +33,6 @@ class TorrentHandle: self.tasks = [] self.torrent_file: Optional[libtorrent.file_storage] = None self._base_path = None - self._handle.set_sequential_download(1) @property def largest_file(self) -> Optional[str]: