Skip to content

Commit

Permalink
Fixed double-setting of Download fields
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Jul 14, 2023
1 parent 701fd9d commit 27623ee
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,12 @@ def __init__(self,
self.download_defaults = download_defaults or DownloadDefaultsSettings()
self.notifier = notifier

# With hidden True download will not be in GET/downloads set, as a result will not be shown in GUI
self.hidden = False

# Libtorrent status
self.lt_status: Optional[lt.torrent_status] = None
self.error = None
self.pause_after_next_hashcheck = False
self.checkpoint_after_next_hashcheck = False
self.tracker_status = {} # {url: [num_peers, status_str]}
self.checkpoint_disabled = self.dummy

self.futures = defaultdict(list)
self.alert_handlers = defaultdict(list)
Expand All @@ -93,6 +89,7 @@ def __init__(self,
self.register_alert_handler(alert_type, alert_handler)
self.stream: Optional[Stream] = None

# With hidden True download will not be in GET/downloads set, as a result will not be shown in GUI
self.hidden = hidden
self.checkpoint_disabled = checkpoint_disabled or self.dummy
self.config = config or DownloadConfig(state_dir=self.state_dir)
Expand Down

0 comments on commit 27623ee

Please sign in to comment.