File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { embellishTorrentsWithTrackerScrape } from "./torrent";
55
66// prettier-ignore
77const 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>
You can’t perform that action at this time.
0 commit comments