Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.86k stars 451 forks source link

Added workaround for deprecation of macos-12 runner #8203

Closed qstokkink closed 1 month ago

qstokkink commented 1 month ago

Fixes #8200

This PR:

qstokkink commented 1 month ago

It seems like the newest libtorrent version demands a minimum piece size of 16384 for v2-compatible torrents. From the libtorrent source, I gather that passing the v1_only flag may fix this.

https://github.com/Tribler/tribler/blob/04095a69300311018d0a8fb7f730b2090ee3ffb3/src/tribler/core/libtorrent/torrents.py#L152

That said, this flag is so new that it doesn't exist on our typing yet, or in lt.create_torrent_flags_t, and we'll have to manually insert the integer value.

UPDATE: This is a confirmed fix.