Cannot get proper .torrent files from some rss feed
Most of the rss feeds I'm using send .torrent filenames in a different XML node, specifically on <item><disclosure url=" "></disclosure></item>
So i had to modify leech.xsl in this way
<xsl:value-of select="title"/><xsl:text> </xsl:text><xsl:value-of select="enclosure/@url"/><xsl:text></xsl:text> "<xsl:value-of select="pubDate"/>"
Is there a better workaround?
Comments (6)
-
repo owner -
Pasting an example
<item> <title>Touch S02E02 [1080]</title> <guid isPermaLink="false">XE1_S02E02_1080</guid> <link> http://www.dailytvtorrents.org/episode/touch-s02e02/ </link> <pubDate>Sun, 10 Feb 2013 04:35:11 GMT</pubDate> <enclosure url="http://www.dailytvtorrents.org/dl/32ae/Touch.S02E02.1080p.WEB-DL.DD5.1.H.264-ECI_%5BPublicHD%5D.DailyTvTorrents.torrent" length="1869301035" type="application/x-bittorrent"/> <description> <![CDATA[ Touch.S02E02.1080p.WEB-DL.DD5.1.H.264-ECI_[PublicHD] (1.7GiB) <a href="http://www.dailytvtorrents.org/dl/32ae/Touch.S02E02.1080p.WEB-DL.DD5.1.H.264-ECI_%5BPublicHD%5D.DailyTvTorrents.torrent">dl</a> ]]> </description> </item>
The <link> item point to the download page of the site insted of the actual .torrent file. I found this format on many rss service, showRSS is one of them.
-
repo owner Weird, showrss at least put copy of URL into <link> or am i looking to different showrss?
Anyway, i've added <enclosure> support in c07a8fbc7af2ad8c805df638ce1d51c337b734f8, it also need to have type="application/x-bittorent".
-
repo owner - changed status to resolved
-
This is what im referring to :) http://showrss.karmorra.info/
Anyway thanks a lot! Very useful script!
-
repo owner You are welcome.
- Log in to comment
What's inside of your feed <item><link> element? Is it empty/missing or has something irrelevant to torrent's URL?