Cannot get proper .torrent files from some rss feed

Issue #1 resolved
Former user created an issue

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)

  1. Aleksey Tulinov repo owner

    What's inside of your feed <item><link> element? Is it empty/missing or has something irrelevant to torrent's URL?

  2. marco_jk

    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.

  3. marco_jk

    This is what im referring to :) http://showrss.karmorra.info/

    Anyway thanks a lot! Very useful script!

  4. Log in to comment