Skip to content

Commit 78f60ee

Browse files
committed
issue tdjsnelling#49: remove magnet uri from rss response
1 parent 7793d82 commit 78f60ee

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

api/src/controllers/rss.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { embellishTorrentsWithTrackerScrape } from "./torrent";
55

66
// prettier-ignore
77
const getTorrentXml = (torrent, userId) => {
8-
const announceUrl = `${process.env.SQ_BASE_URL}/sq/${userId}/announce`
98
return `<item>
109
<title>${torrent.name}</title>
1110
<description>${torrent.description}</description>
@@ -14,11 +13,10 @@ const getTorrentXml = (torrent, userId) => {
1413
<torrent>
1514
<filename>${torrent.name}</filename>
1615
<contentlength>${torrent.size}</contentlength>
17-
<magneturi>magnet:?xt=urn:btih:${torrent.infoHash}&dn=${encodeURIComponent(torrent.name)}&tr=${encodeURIComponent(announceUrl)}</magneturi>
1816
<trackers>
1917
<group order="ordered">
2018
<tracker seeds="${torrent.seeders}" peers="${torrent.seeders + torrent.leechers}">
21-
${announceUrl}
19+
${process.env.SQ_BASE_URL}/sq/${userId}/announce
2220
</tracker>
2321
</group>
2422
</trackers>

0 commit comments

Comments
 (0)