Swarm Merging
I found this after searching for Swarm Merging issues in Libtorrent
Perhaps a better approach would be to implement support for BitTorrent V2, where pieces are always file-aligned, and I believe pieces will likely be uniform everywhere as well, and there will be file hashes (each file has a root hash).
Once this is supported and in wide use, mutable torrents, and sharing files between torrents, will be a lot simpler.
Now, that BitTorrent V2 is supported by every torrent client, this feature has a chance to be implemented.
BiglyBT has been doing this for long = https://github.com/BiglySoftware/BiglyBT/wiki/Swarm-Merging
Duplicate issue. But the good news is that the general idea is approved by the maintainer : https://github.com/arvidn/libtorrent/issues/829#issuecomment-669074684 https://github.com/arvidn/libtorrent/issues/3272#issuecomment-417083391 https://github.com/arvidn/libtorrent/issues/4936#issuecomment-1216206576
So it's about someone volunteering to make a good enough patch. Or someone vounteering to organize and manage a crowdfunding or a grant request to pay someone to code this.
It's been working for a long time. You're using the wrong programs.