[Plugin] YaRSS2 - RSS plugin with GTKUI support

Suggest, post, or discuss plugins for Deluge
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by bro »

Hi

There is no good reason I can think of why TorrentAddedEvent would not be emited. If Deluge successfully adds a torrent a TorrentAddedEvent should be emited no matter how it was added, as it's the same function that adds the torrent.
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
Ignobilis
New User
New User
Posts: 2
Joined: Sun Mar 16, 2014 6:41 am

[Plugin] YaRSS2 - Regex Find Replace in RSS

Post by Ignobilis »

Thanks a lot for your great plugin. :D

I would like to make a request for allowing regex find/replace in the RSS xml before it is scanned by the subscription. It looks to me that you have suggested in other posts that one could use Yahoo Pipes to achieve the same, but Yahoo requires an account to create a pipe, and new accounts require a mobile phone number :shock:, so it is not a route I would like to take.

Adding this functionality will make it possible to use RSS feeds from sites such as torrentz.eu, which do not link directly to a torrent file, but which could easily be edited to do so.

If there are other ways already available to accomplish this functionality, please advise and I will give it a try.

Thanks in advance.

Ignobilis
Durban, South Africa
Mona

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by Mona »

I just switched to deluge and I am almost happy :)

I am trying to add yarss as a rss feedhandler to deluge. While the rssfeed from eztv works fine, the rss-feed from showrss.info seems not to work, maybe because of the use of magnets?

The search pattern matches, the log says, that a magnet ist beinig added,

Code: Select all

log:
[INFO    ] 12:43:11 logger:63 YaRSS2.rssfeed_handling:310: Fetching subscription 'The Good Wife'.
[INFO    ] 12:43:11 logger:63 YaRSS2.rssfeed_handling:109: Fetching RSS Feed: 'showrss' with Cookie: '{}'.
[INFO    ] 12:43:13 logger:63 YaRSS2.rssfeed_handling:330: 14 items in feed, 1 matches the filter.
[INFO    ] 12:43:13 logger:63 YaRSS2.torrent_handling:83: Fetching magnet: 'magnet:?xt=urn:btih:2DEB714D60FB02BA745EB126C592A47C2058375D&dn=The+Good+Wife+S05E13+HDTV+x264+LOL&tr=udp://tracker.openbittorrent.com:80&tr=udp://tracker.publicbt.com:80&tr=udp://tracker.istole.it:80&tr=http://tracker.istole.it&tr=http://fr33dom.h33t.com:3310/announce'tr=http://fr33dom.h33t.com:3310/announce'
but nothing happens, the file does not get downloaded. Any ideas?

Code: Select all

log:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 773, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 368, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "build/bdist.linux-x86_64/egg/yarss2/rssfeed_scheduler.py", line 166, in add_torrents_callback
    add_torrent_func(save_subscription_func, matching_torrents, config)
  File "build/bdist.linux-x86_64/egg/yarss2/torrent_handling.py", line 168, in add_torrents
    torrent_download = self.add_torrent(torrent_match)
  File "build/bdist.linux-x86_64/egg/yarss2/torrent_handling.py", line 143, in add_torrent
    download.torrent_id = component.get("TorrentManager").add(options=options, magnet=download.url)
  File "/usr/lib/python2.7/dist-packages/deluge/core/torrentmanager.py", line 450, in add
    handle = lt.add_magnet_uri(self.session, magnet, add_torrent_params)
Boost.Python.ArgumentError: Python argument types in
    libtorrent.add_magnet_uri(session, unicode, dict)
did not match C++ signature:
    add_magnet_uri(libtorrent::session {lvalue}, std::string, boost::python::dict)
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: [Plugin] YaRSS2 - Regex Find Replace in RSS

Post by bro »

Ignobilis wrote:Thanks a lot for your great plugin. :D

I would like to make a request for allowing regex find/replace in the RSS xml before it is scanned by the subscription. It looks to me that you have suggested in other posts that one could use Yahoo Pipes to achieve the same, but Yahoo requires an account to create a pipe, and new accounts require a mobile phone number :shock:, so it is not a route I would like to take.

Adding this functionality will make it possible to use RSS feeds from sites such as torrentz.eu, which do not link directly to a torrent file, but which could easily be edited to do so.

If there are other ways already available to accomplish this functionality, please advise and I will give it a try.

Thanks in advance.

Ignobilis
Durban, South Africa
Hi

I never used the Yahoo Pipes, but a user suggested that solution which is better than nothing, but I agree, it would be better to have an integrated solution.
I'm not sure how easy it would be to implement a solution for torrentz.eu though, as it links to multiple different torrent sites which have different formats on their pages. How did you envision a solution to this?
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by bro »

Mona wrote:

Code: Select all

log:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 773, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 368, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "build/bdist.linux-x86_64/egg/yarss2/rssfeed_scheduler.py", line 166, in add_torrents_callback
    add_torrent_func(save_subscription_func, matching_torrents, config)
  File "build/bdist.linux-x86_64/egg/yarss2/torrent_handling.py", line 168, in add_torrents
    torrent_download = self.add_torrent(torrent_match)
  File "build/bdist.linux-x86_64/egg/yarss2/torrent_handling.py", line 143, in add_torrent
    download.torrent_id = component.get("TorrentManager").add(options=options, magnet=download.url)
  File "/usr/lib/python2.7/dist-packages/deluge/core/torrentmanager.py", line 450, in add
    handle = lt.add_magnet_uri(self.session, magnet, add_torrent_params)
Boost.Python.ArgumentError: Python argument types in
    libtorrent.add_magnet_uri(session, unicode, dict)
did not match C++ signature:
    add_magnet_uri(libtorrent::session {lvalue}, std::string, boost::python::dict)
Hi

Unless I'm mistaken you're using Deluge 1.3.3. Deluge 1.3.4 contains a fix for this issue you're seeing.
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
Ignobilis
New User
New User
Posts: 2
Joined: Sun Mar 16, 2014 6:41 am

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by Ignobilis »

Thanks for the quick response.

Right now, if I could change this:

Code: Select all

<link>http://torrentz.eu/e6ec907195d033e097da6b24ac8aae1116219d85</link>
to this:

Code: Select all

<link>http://torcache.net/torrent/e6ec907195d033e097da6b24ac8aae1116219d85.torrent</link>
it would make several dozen torrents available to me using RSS, which I currently have to fetch manually. A very simple regex find/replace would do it nicely.

I understand that this solution might have to be edited from time to time, but I have no problem with that, because that's the nature of torrents anyway.
captainnapalm
Member
Member
Posts: 20
Joined: Wed Mar 05, 2014 9:07 pm

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by captainnapalm »

I finally figured out how to get this thing working, but that's through no fault of the plugin, but rather of my own incompetence. Thanks for your hard work bro.

Is there a way to add a label from within a subscription? I've got a setup where I essentially have 3 types of downloads that are copied to different locations for sorting after the torrent is completed while I continue to seed. I'd like to use this plugin while adding a label to any new torrents from a subscription. Would this be possible?

EDIT: If this isn't possible, is there any way to have an option to download the .torrent to a specific folder to let AutoAdd take care of the labelling?
Last edited by captainnapalm on Wed Mar 19, 2014 2:43 am, edited 1 time in total.
captainnapalm
Member
Member
Posts: 20
Joined: Wed Mar 05, 2014 9:07 pm

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by captainnapalm »

I'm also having troubles with the email notifications. I'm trying to use gmail but I believe gmail requires "TSL" for secure authentication but I don't see that as an option in the plugin.

EDIT: Found the post a page back about changing to port 587 instead of 465. I'll try that out.
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by bro »

captainnapalm wrote:I finally figured out how to get this thing working, but that's through no fault of the plugin, but rather of my own incompetence. Thanks for your hard work bro.

Is there a way to add a label from within a subscription? I've got a setup where I essentially have 3 types of downloads that are copied to different locations for sorting after the torrent is completed while I continue to seed. I'd like to use this plugin while adding a label to any new torrents from a subscription. Would this be possible?

EDIT: If this isn't possible, is there any way to have an option to download the .torrent to a specific folder to let AutoAdd take care of the labelling?
Hi

There is no way to set up a label at the moment. You'd have to look around in the AutoAdd options if it has such an option.
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by bro »

captainnapalm wrote:I'm also having troubles with the email notifications. I'm trying to use gmail but I believe gmail requires "TSL" for secure authentication but I don't see that as an option in the plugin.

EDIT: Found the post a page back about changing to port 587 instead of 465. I'll try that out.
587 should work with gmail. I've added a section to the wiki about email and gmail settings.
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
Post Reply