Skip to content

Commit b142f6b

Browse files
committed
I really do not understand torrent rss
1 parent d560e47 commit b142f6b

File tree

2 files changed

+79
-71
lines changed

2 files changed

+79
-71
lines changed

rss.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#xml.write("\t\t\t<torrent:infoHash>{0}</torrent:infoHash>\n".format(infohash))
5454
#xml.write("\t\t\t<torrent:magnetURI><![CDATA[{0}]]></torrent:magnetURI>\n".format(magnet))
5555
#xml.write("\t\t\t<torrent:fileName>{0}</torrent:fileName><torrent:fileName>\n".format(name))
56-
xml.write("\t\t\t<enclosure url=\"{0}\" type=\"application/x-bittorent\" />\n".format(magnet))
56+
xml.write("\t\t\t<enclosure url=\"magnet:?xt=urn:btih:{0}\" type=\"application/x-bittorent\" />\n".format(infohash))
5757
xml.write("\t\t</item>\n")
5858
xml.write("\t</channel>\n")
5959
xml.write("</rss>")

0 commit comments

Comments
 (0)