Page 2 of 2

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Sat Sep 12, 2015 5:38 am
by steelsnake
Interesting. You're right. Torcache definitely doesn't seem to like automated downloads :)

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Fri Sep 18, 2015 11:58 pm
by sgnews
Yeah it is definitely giving an interstitial page to the RSS reader. The readers are not smart enough to 'click here' and even if they could the referrer would need to be set.

This change in torcache coding also broke the feed in other torrent clients.

This method provided by nkvFzRnRIN13Br5H totally works, it is changing the referrer and agent; you're a genius! Thanks!

The internet provides (almost always) a workaround.

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Sat Sep 19, 2015 11:56 pm
by bro
Hi guys

Would you try out the attached version and see how it works?

Both feedparser and requests should now use the same User agent as defined in yarss_config.py

Edit: That version (1.3.4) didn't actually work so well, but version 1.3.5 should work for the kickass RSS example. 1.3.5 also has a new setting to prefer the magnet link over the torrent link of both are present.
  • Updated feedparser to 5.2.0
  • Implemented support for setting label when Label plugin is enabled
  • Change user agent used when fetching RSS feeds with requests library.
  • Added option to ignore timestamps in RSS feeds.
  • Added option to prefer magnet link over torrent link.

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Thu Sep 24, 2015 4:18 am
by knifesk
Can you build for Python 2.6, please? I couldn't...

Scenario:
Headless server: centos 6.7
Workstation: Windows 10, deluge 1.3.11

Centos:

Code: Select all

git clone https://bitbucket.org/bendikro/deluge-yarss-plugin.git
cd deluge-yarss-plugin
git checkout developement
python setup.py bdist_egg
mv dist/YaRSS2-1.3.3-py2.6.egg /var/lib/deluge/.config/deluge/plugins
copied builded egg to my windows box through shared folder, then added it to my deluge client and when I click the checkbox to enable the plugin, things go south in my centos terminal :(

Code: Select all

[ERROR   ] 22:05:42 rpcserver:304 Exception calling RPC request: 'CorePlugin.YaRSS2'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/deluge/core/core.py", line 524, in enable_plugin
    self.pluginmanager.enable_plugin(plugin)
  File "/usr/lib/python2.6/site-packages/deluge/core/pluginmanager.py", line 82, in enable_plugin
    super(PluginManager, self).enable_plugin(name)
  File "/usr/lib/python2.6/site-packages/deluge/pluginmanagerbase.py", line 151, in enable_plugin
    component.start([instance.plugin._component_name])
  File "/usr/lib/python2.6/site-packages/deluge/component.py", line 290, in start
    if self.components[name]._component_depend:
KeyError: 'CorePlugin.YaRSS2'

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Thu Sep 24, 2015 5:19 am
by knifesk
Nevermid... I made it work.. Had to replace the version number in the setup.py, then builded again, chowned (cause I forgot to do so before) and installed the plugin in both sides by separate and it worked.

I can't attach my build because maximum allowed size is 1 MiB.

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Mon Sep 28, 2015 9:22 pm
by this_is_totally
bro wrote:Hi guys

Would you try out the attached version and see how it works?

Both feedparser and requests should now use the same User agent as defined in yarss_config.py

Edit: That version (1.3.4) didn't actually work so well, but version 1.3.5 should work for the kickass RSS example. 1.3.5 also has a new setting to prefer the magnet link over the torrent link of both are present.
  • Updated feedparser to 5.2.0
  • Implemented support for setting label when Label plugin is enabled
  • Change user agent used when fetching RSS feeds with requests library.
  • Added option to ignore timestamps in RSS feeds.
  • Added option to prefer magnet link over torrent link.
Thanks so much bro!!! I had been working on this issue all morning before finding your updated .eggs. Instant fix :D

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Mon Sep 28, 2015 10:51 pm
by bro
this_is_totally wrote: Thanks so much bro!!! I had been working on this issue all morning before finding your updated .eggs. Instant fix :D
You are much welcomed! As nobody have reported any issues with these I'll create a new official release very soon.

Re: YaRSS2 Subscriptions unable to download torrents

Posted: Sat Jun 04, 2016 3:50 am
by Hellmark
Not sure if I am missing something, but I am running into a problem with this on KAT, and not sure what to do to get things working. I gotta be missing something since you already fixed it