Closed qstokkink closed 4 months ago
We currently sport some overlapping logic for torrent creation. Essentially, both implementations invoke create_torrent_file and - considering their very thin wrapper around that method - both can be replaced with a call to create_torrent_file.
create_torrent_file
TorrentDef
https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/torrentdef.py#L207
https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/torrentdef.py#L368-L374
https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/torrentdef.py#L518-L524
DownloadManager
https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/download_manager/download_manager.py#L1064-L1073
We currently sport some overlapping logic for torrent creation. Essentially, both implementations invoke
create_torrent_file
and - considering their very thin wrapper around that method - both can be replaced with a call tocreate_torrent_file
.TorrentDef
:https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/torrentdef.py#L207
https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/torrentdef.py#L368-L374
https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/torrentdef.py#L518-L524
DownloadManager
:https://github.com/qstokkink/TriblerExperimental/blob/f80223fd4006b8305b893a3536a00fd54cd9b8ed/src/tribler/core/libtorrent/download_manager/download_manager.py#L1064-L1073