#3478: Magnets without metadata not restored from state. ----------------------------+--------------------- Reporter: mhertz | Type: bug Status: new | Priority: minor Milestone: needs verified | Component: Unknown Version: 2.0.0 | Keywords: ----------------------------+--------------------- As title, magnets without metadata aren't restored from state upon restart, when using libtorrent 1.2.11 and above, because of change in resume-saving logic of libtorrent i.e. resume-data saved for magnets even without metadata now, which breaks restoring them upon restart in deluge.
I personally fixed it by this: {{{ diff -urN a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py --- a/deluge/core/torrentmanager.py 2021-04-21 12:44:14.000000000 +0200 +++ b/deluge/core/torrentmanager.py 2021-07-20 19:38:41.819231547 +0200 @@ -1029,6 +1029,7 @@ tid for tid, t in self.torrents.items() if t.handle.need_save_resume_data() + if t.has_metadata ) def on_torrent_resume_save(dummy_result, torrent_id): }}} Easy quick way to reproduce, is to add a magnet with non-existing info- hash and restart deluge, and as said, need to use libtorrent 1.2.11 or above. (e.g. "magnet:?xt=urn:btih:85bbba4035cca750f681284857f53e405eb41f8d" ) Tested on deluge-2.0.4.dev56 and libtorrent-1.2.14 on arch-linux. Thanks in advance. -- Ticket URL: <https://dev.deluge-torrent.org/ticket/3478> Deluge <https://deluge-torrent.org/> Deluge Project -- You received this message because you are subscribed to the Google Groups "Deluge Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/deluge-dev/045.5c8ec792d6b6a33194b7a6ef8d959952%40deluge-torrent.org.