Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Relative Path Returned by RSS giving 'ValueError unknown url type'

$
0
0

@jimfinity wrote:

Hi

I've been trying to setup a download from an RSS feed but it contains the relative path to the download and I get an error like this

2020-02-11 12:15:01 ERROR    entry         pwtorrents      Failed AEW.Dynamite.2020.02.05.HDTV.x264-NWCHD - Indy's (ValueError unknown url type: '/download.php?id=16911&name=AEW.Dynamite.2020.02.05.HDTV.x264-NWCHD.mp4.torrent')

I think the fix would be to add https://pwtorrents.net to the front of the URL to make it valid but I can't get the correct config to do this. A snippet from my config looks like the following (apologies some formatting was lost):

pwtorrents:
priority: 1
headers:
COOKIE: 'uid=5####;pass=86########'
rss:
url: 'https://www.pwtorrents.net/rss.php?feed=dl&cat=6:COOKIE:uid=5####;pass=86########'
all_entries: no
manipulate:
- link:
replace:
regexp: '/download.php?id=(?P<id>[0-9]+)&name=(?P<name>.*)'
format: 'https://www.pwtorrents.net/download.php?id=\g<id>&name=\g<name>'

template:
- wrestlingtv
- save

At the moment this shows that the link field can't be found

2020-02-11 12:27:22 WARNING  manipulate    pwtorrents      Cannot replace, field `link` is not present

I took the 'link' field from the RSS which looks like this.

<rss version="0.91">
<channel>
<title>Pro Wrestling Torrents</title>
<link/>
<description>RSS Feeds</description>
<language>en-us</language>
<copyright>Copyright &copy; 2020 Pro Wrestling Torrents</copyright>
<webMaster>noreply@pwtorrents.net</webMaster>
<image>
<title>Pro Wrestling Torrents</title>
<url>/favicon.ico</url>
<link/>
<width>16</width>
<height>16</height>
<description>RSS Feeds</description>
</image>
<item>
<title>AIW Built to Last - Indy's</title>
<link>/download.php?id=16963&name=IndependentWrestling.TV Built to Last-1.mp4.torrent</link>
<description> Category: Indy's Size: 1.97 GB Status: 6 seeders and 0 leechers Speed: no traffic Added: 2020-02-08 20:41:39 </description>
</item>
<item>
<title>GCW Ready to Die - Indy's</title>
<link>/download.php?id=16933&name=GCW Ready to Die 2.5.2020.mp4.torrent</link>
<description> Category: Indy's Size: 1.87 GB Status: 10 seeders and 0 leechers Speed: no traffic Added: 2020-02-06 14:26:14 </description>
</item>
<item>
<title>AEW.Dynamite.2020.02.05.1080p.WEB.h264-HEEL - Indy's</title>
<link>/download.php?id=16914&name=AEW.Dynamite.2020.02.05.1080p.WEB.h264-HEEL.mp4.torrent</link>
<description> Category: Indy's Size: 3.68 GB Status: 23 seeders and 0 leechers Speed: no traffic Added: 2020-02-06 04:52:19 </description>

What do I need to change to fix the URL?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles