Skip to content

Commit

Permalink
Don't use bytes in tasknames
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Feb 18, 2025
1 parent 6a7d248 commit 36453a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ async def start_handle(self, download: Download, atp: dict) -> None:
download.post_alert("add_torrent_alert", {"handle": existing_handle})
else:
# Otherwise, add it anew
_ = self.replace_task(f"AddTorrent{infohash}", self._async_add_torrent, ltsession, infohash, atp,
ignore=(Exception,))
_ = self.replace_task(f"AddTorrent_{hexlify(infohash).decode()}", self._async_add_torrent, ltsession,
infohash, atp, ignore=(Exception,))

if not isinstance(download.tdef, TorrentDefNoMetainfo):
self.notifier.notify(Notification.torrent_metadata_added, metadata={
Expand Down

0 comments on commit 36453a2

Please sign in to comment.