[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 »

esplinter wrote: EDIT: I have just got this error when enabling/disabling the plugin :(

Code: Select all

[ERROR   ] 02:44:30 rpcserver:303 Exception calling RPC request: 'CorePlugin.YaRSS2'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 298, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 510, in enable_plugin
    self.pluginmanager.enable_plugin(plugin)
  File "/usr/lib/python2.7/dist-packages/deluge/core/pluginmanager.py", line 82, in enable_plugin
    super(PluginManager, self).enable_plugin(name)
  File "/usr/lib/python2.7/dist-packages/deluge/pluginmanagerbase.py", line 151, in enable_plugin
    component.start([instance.plugin._component_name])
  File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 290, in start
    if self.components[name]._component_depend:
KeyError: 'CorePlugin.YaRSS2'
I'm getting that too. This only happens when the plugin was loaded by the daemon (server) on startup. I'm testing with earlier versions, and it seems this bug has been there for some time.

It should work with no errors as long as you don't manually disable the plugin in the GTK Client. Is this correct?

Thanks for reporting this bug, it might not have been found if you hadn't ;-)

Edit: After some investigation I believe I can conclude that it's a bug in Deluge 1.3. The problem has to do with how it handles disabling plugins in the core. However, it looks like it has been fixed in master.
So to conclude, there really isn't much you can do about it.
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 »

Nokism wrote:Hi bro

Thanks again for this plugin i got it working using the Thin client, but how do i know if it is working on my seedbox?

I have a couple of tv shows set up to auto download and in the matching tab the whole line is blue
and it has matched only the shows i want but it doesn't seem to be downloading the torrent file?

am i missing something?


Thanks
Nok

Edit*

the message log is giving me this... (I changed the link a bit) but i tried the original link in my browser and it downloads a torrent file, not a redirect page...

Code: Select all

(2012-11-16T01:25:45): Unable to decode torrent file! (invalid bencoding) URL: 'http://www.bitmetv.org/download.php/Cajun.Pawn.Stars.S02E28.HDTV.x264-EVOLVE.mp4.torrent'
(2012-11-16T01:25:45): Failed to add torrent 'Cajun.Pawn.Stars.S02E28.HDTV.x264-EVOLVE.mp4' from url 'http://www.bitmetv.org/download.php/Cajun.Pawn.Stars.S02E28.HDTV.x264-EVOLVE.mp4.torrent'
(2012-11-16T01:25:45): Adding torrent: 'http://www.bitmetv.org/download.php/Cajun.Pawn.Stars.S02E29.HDTV.x264-EVOLVE.mp4.torrent'
(2012-11-16T01:25:46): Unable to decode torrent file! (invalid bencoding) URL: 'http://www.bitmetv.org/download.php/Cajun.Pawn.Stars.S02E29.HDTV.x264-EVOLVE.mp4.torrent'
(2012-11-16T01:25:46): Failed to add torrent 'Cajun.Pawn.Stars.S02E29.HDTV.x264-EVOLVE.mp4' from url 'http://www.bitmetv.org/download.php/Cajun.Pawn.Stars.S02E29.HDTV.x264-EVOLVE.mp4.torrent'

Also once everything is working will it still do it's thing when i turn my pc off?
Hey, sorry for (accidentally) overlooking your post.

I'm not sure why it fails to decode those torrents. That should work with v1.1.3. What could be the problem is that the tracker sets a limit for how many torrents you can leech, and if you go over the limit, the link to the torrent file will actually redirect to a html page informing you that you are leeching too many torrents.

The best way to test if it works on your seedbox is to manually add a torrent in the subscription dialog. In the dialog you'll see the list of the torrents in the current feed. Right click one and select "Add torrent". That torrent should immediately be added to Deluge.
If that works, save the subscription with a filter that matches a torrent in the current list. Right click the subscription in the list on subscriptions, and select "Run this subscription". It will then execute the fetch procedure that is run regularly by the timer, and add the torrents that matches the filter in the subscription. In v1.2.0 you'll also have to manually reset the time stamp for the subscription before running the subscription.

YaRSS2 will run fine on the daemon/server without a client connected, so you can safely turn off your computer.
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.
Nokism
New User
New User
Posts: 9
Joined: Fri Nov 09, 2012 11:07 am

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

Post by Nokism »

Hey, sorry for (accidentally) overlooking your post.

I'm not sure why it fails to decode those torrents. That should work with v1.1.3. What could be the problem is that the tracker sets a limit for how many torrents you can leech, and if you go over the limit, the link to the torrent file will actually redirect to a html page informing you that you are leeching too many torrents.

The best way to test if it works on your seedbox is to manually add a torrent in the subscription dialog. In the dialog you'll see the list of the torrents in the current feed. Right click one and select "Add torrent". That torrent should immediately be added to Deluge.
If that works, save the subscription with a filter that matches a torrent in the current list. Right click the subscription in the list on subscriptions, and select "Run this subscription". It will then execute the fetch procedure that is run regularly by the timer, and add the torrents that matches the filter in the subscription. In v1.2.0 you'll also have to manually reset the time stamp for the subscription before running the subscription.

YaRSS2 will run fine on the daemon/server without a client connected, so you can safely turn off your computer.
Just tried what you advised and got this...

Code: Select all

(2012-11-18T03:45:43): Fetching RSS Feed: 'BitMeTV' with Cookie: '{}'.
(2012-11-18T03:45:44): Exception occured when fetching feed: document declared as us-ascii, but parsed as iso-8859-1
(2012-11-18T03:46:24): Adding torrent: 'http://www.bitmetv.org/download.php/261654/chicagolicious.0114.720p-yestv.mkv.torrent'
(2012-11-18T03:46:24): Unable to decode torrent file! (invalid bencoding) URL: 'http://www.bitmetv.org/download.php/261654/chicagolicious.0114.720p-yestv.mkv.torrent'
I'm not sure what this means, and what you said above about fetching too many torrents, I only have one subscription set up at the moment until i get it working, then i will go whole hog :)
Just tried adding the cookie info like your screenshot on the wiki and that didn't work either.


Any advice?

this is my feed url minus some info

http://www.bitmetv.org/rss.php?uid=**** ... *&passkey=*************************

also my update interval keeps resetting to 10mins

Nok
esplinter
New User
New User
Posts: 9
Joined: Sat Mar 24, 2012 5:26 pm

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

Post by esplinter »

bro wrote:
It should work with no errors as long as you don't manually disable the plugin in the GTK Client. Is this correct?

Thanks for reporting this bug, it might not have been found if you hadn't ;-)

Edit: After some investigation I believe I can conclude that it's a bug in Deluge 1.3. The problem has to do with how it handles disabling plugins in the core. However, it looks like it has been fixed in master.
So to conclude, there really isn't much you can do about it.
Yes, it seems to work if I don´t manually disable it so I won´t touch it :)

I have found that in one linux machine where I had installed just "deluge-gtk" package I couldn´t see the yarss2 GUI. I had to install the package "python-libtorrent" to make it work.

I also could see the yarss2 GUI from my other mac osx machine by manually copying the yarss2 .egg file to $HOME/.config/deluge/plugins in the client side (osx)
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 »

Nokism wrote:
Hey, sorry for (accidentally) overlooking your post.

I'm not sure why it fails to decode those torrents. That should work with v1.1.3. What could be the problem is that the tracker sets a limit for how many torrents you can leech, and if you go over the limit, the link to the torrent file will actually redirect to a html page informing you that you are leeching too many torrents.

The best way to test if it works on your seedbox is to manually add a torrent in the subscription dialog. In the dialog you'll see the list of the torrents in the current feed. Right click one and select "Add torrent". That torrent should immediately be added to Deluge.
If that works, save the subscription with a filter that matches a torrent in the current list. Right click the subscription in the list on subscriptions, and select "Run this subscription". It will then execute the fetch procedure that is run regularly by the timer, and add the torrents that matches the filter in the subscription. In v1.2.0 you'll also have to manually reset the time stamp for the subscription before running the subscription.

YaRSS2 will run fine on the daemon/server without a client connected, so you can safely turn off your computer.
Just tried what you advised and got this...

Code: Select all

(2012-11-18T03:45:43): Fetching RSS Feed: 'BitMeTV' with Cookie: '{}'.
(2012-11-18T03:45:44): Exception occured when fetching feed: document declared as us-ascii, but parsed as iso-8859-1
(2012-11-18T03:46:24): Adding torrent: 'http://www.bitmetv.org/download.php/2616/xxxx.torrent'
(2012-11-18T03:46:24): Unable to decode torrent file! (invalid bencoding) URL: 'http://www.bitmetv.org/download.php/2616/xxxx.torrent'
I'm not sure what this means, and what you said above about fetching too many torrents, I only have one subscription set up at the moment until i get it working, then i will go whole hog :)
Just tried adding the cookie info like your screenshot on the wiki and that didn't work either.

Any advice?

this is my feed url minus some info

http://www.bitmetv.org/rss.php?uid=**** ... *&passkey=*************************

also my update interval keeps resetting to 10mins

Nok
You shouldn't get access to that feed without the proper cookies set, so I'm not sure how that log output is even possible. If you get a list of torrents in the subscription dialog then your cookies are correct.
What are the names/keys you added to the cookie?
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 »

esplinter wrote:
bro wrote:
It should work with no errors as long as you don't manually disable the plugin in the GTK Client. Is this correct?

Thanks for reporting this bug, it might not have been found if you hadn't ;-)

Edit: After some investigation I believe I can conclude that it's a bug in Deluge 1.3. The problem has to do with how it handles disabling plugins in the core. However, it looks like it has been fixed in master.
So to conclude, there really isn't much you can do about it.
Yes, it seems to work if I don´t manually disable it so I won´t touch it :)

I have found that in one linux machine where I had installed just "deluge-gtk" package I couldn´t see the yarss2 GUI. I had to install the package "python-libtorrent" to make it work.

I also could see the yarss2 GUI from my other mac osx machine by manually copying the yarss2 .egg file to $HOME/.config/deluge/plugins in the client side (osx)
That dependency is easily removed. Will fix.
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.
Nokism
New User
New User
Posts: 9
Joined: Fri Nov 09, 2012 11:07 am

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

Post by Nokism »

Bro

I used the uid in the link above, I also opened a torrent file with a text editor and used the passkey
I found in there
Should I be adding the feed above without the uid and key, and adding the uid and key in the cookie part?
I will take screenshots when I get home and upload them here


Thanks again for taking the time to help out

Nok
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 »

Nokism wrote:Bro

I used the uid in the link above, I also opened a torrent file with a text editor and used the passkey
I found in there
Should I be adding the feed above without the uid and key, and adding the uid and key in the cookie part?
I will take screenshots when I get home and upload them here


Thanks again for taking the time to help out

Nok
You need them both in the url and in the cookies. It should work using the values from the url in the cookies. But the site string must match the url for the cookie to be used. In your case it should be "bitmetv.org"

The log message in the message log will show you if the cookie was used or not. It should look someething like this:

Code: Select all

Fetching RSS Feed: 'Feed base url' with Cookie: '{'Cookie': 'uid=xxxx; passkey=xxxxxxxxx'}'.
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.
Nokism
New User
New User
Posts: 9
Joined: Fri Nov 09, 2012 11:07 am

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

Post by Nokism »

Hi Bro

The cookie thing didn't work i got the follow message
here are the images of my settings
Attachments
feed.png
feed.png (13.58 KiB) Viewed 9576 times
message_log.png
message_log.png (40.15 KiB) Viewed 9576 times
cookie.png
cookie.png (15.76 KiB) Viewed 9576 times
Nokism
New User
New User
Posts: 9
Joined: Fri Nov 09, 2012 11:07 am

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

Post by Nokism »

I will remove the attachments once you reply to save clutter
Attachments
subscription.png
subscription.png (37.73 KiB) Viewed 9576 times
Post Reply