feat(indexers): add T66y (#2044)

* Adds t66y indexer + irc support for templated infohashes and magnet uris.

* Removed trackers from t66y magnets.

* No need to templatize the torrenthash.

* Fixed tests.

* Opps, correct tests again.

* Moved torrentHash to mapvars.

* Removed field and renamed arg.

* feat(indexers): add test parseurls magneturi

---------

Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
Alex Belanger 2025-04-27 12:37:31 -04:00 committed by GitHub
parent 5da0ebbe1f
commit 6073480bc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 111 additions and 2 deletions

View file

@ -964,6 +964,10 @@ func (r *Release) MapVars(def *IndexerDefinition, varMap map[string]string) erro
r.TorrentName = html.UnescapeString(torrentName)
}
if torrentHash, err := getStringMapValue(varMap, "torrentHash"); err == nil {
r.TorrentHash = torrentHash
}
if torrentID, err := getStringMapValue(varMap, "torrentId"); err == nil {
r.TorrentID = torrentID
}