Is this legal? I’m of the impression that publishing infohashes to copyrighted content is illegal under DMCA?
I can generate a Google link with an infohash in the same fashion: https://www.google.com/search?q=1548262051907755713575797913...
Yandex is the only search engine that's even marginal useful for that now.
https://www.theregister.com/2001/09/11/worlds_first_decss_ex...
I'm of the impression that serving either the infohash or the torrent is considered to violate DMCA. DMCA does not just forbid sharing copyrighted material, but also sharing links to the copyrighted material or generally anything that can help people bypass copyright protections (including software that can decrypt even trivial DRM).