Rss Yahoo管道-防止转义节点的文本
我正在编写一个管道来重新映射RSS提要中的几个节点 最近创建了一个新的torrent命名空间,并在一些提供bittorrent提要的站点上使用。feed中每个项目的torrent节点都包含magnet/URI,我正在尝试将其重新映射到媒体内容的链接,这样我的bittorrent客户端将默认下载该文件,而不是文件本身,因为我几乎可以保证它可以通过DHT获取torrent文件,这与由于正常运行时间问题而直接下载torrent文件不同 我已经设法正确地重新映射了它,只是magnetURI在magnetURI节点中存储为Rss Yahoo管道-防止转义节点的文本,rss,escaping,yahoo-pipes,magnet-uri,Rss,Escaping,Yahoo Pipes,Magnet Uri,我正在编写一个管道来重新映射RSS提要中的几个节点 最近创建了一个新的torrent命名空间,并在一些提供bittorrent提要的站点上使用。feed中每个项目的torrent节点都包含magnet/URI,我正在尝试将其重新映射到媒体内容的链接,这样我的bittorrent客户端将默认下载该文件,而不是文件本身,因为我几乎可以保证它可以通过DHT获取torrent文件,这与由于正常运行时间问题而直接下载torrent文件不同 我已经设法正确地重新映射了它,只是magnetURI在magnet
CDATA
。当管道处理此操作时,它将转义uri特定的字符,如符号AND。有没有办法强制管道按原样显示数据而不转义
下面是从其中一个提要中提取项目的示例:
<item>
<title><![CDATA[Some torrent title]]></title>
<link>http://www.somebittorrentsite.com/fileofinterest.torrent</link>
<pubDate>Mon, 21 Feb 2011 00:00:00 -0000</pubDate>
<description><![CDATA[A torrent file you'd like to download.]]></description>
<enclosure url="http://www.somebittorrentsite.com/fileofinterest.torrent" length="123456789" type="application/x-bittorrent" />
<guid>912554a5-dd0e-4bee-b2ed-d776e0471552</guid>
<torrent xmlns="http://xmlns.ezrss.it/0.1/">
<fileName><![CDATA[fileofinterest.torrent]]></fileName>
<contentLength>123456789</contentLength>
<infoHash>E4799FF799F9C8C26BA087C601A732DF748FDFB0</infoHash>
<magnetURI><![CDATA[magnet:?xt=urn:btih:E4799FF799F9C8C26BA087C601A732DF748FDFB0&dn=fileofinterest]]></magnetURI>
</torrent>
</item>
YP设计用于非程序员可读的文本,因此转换单个
“&”到“&;”代码>有意义
我唯一能建议的是将管道穿过替换模块,然后以这种方式将其交换回来
<item>
<title>Some torrent title</title>
<link>http://www.somebittorrentsite.com/fileofinterest.torrent</link>
<description>A torrent file you'd like to download.</description>
<guid isPermaLink="false">912554a5-dd0e-4bee-b2ed-d776e0471552</guid>
<pubDate>Mon, 28 Feb 2011 19:44:07 -0800</pubDate>
<media:content url="magnet:?xt=urn:btih:E4799FF799F9C8C26BA087C601A732DF748FDFB0&amp;dn=fileofinterest" type="application/x-magnet"/>
</item>