[Plugin] FlexGet - RSS Solution (Deluge 1.1 and 1.2+)

Suggest, post, or discuss plugins for Deluge
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge 1.2/FlexGet/Ubuntu Karmic 64bit

Post by gazpachoking »

elsteve wrote:I finally gave up on Vuze/Azureus and jumped on the Deluge bandwagon - as a client I'm a big fan - much lighter footprint and snappier...

On Azureus I had an RSS plugin setup to pull one RSS feed (for tv shows) and download newest episodes, hi-def only into respective directories. (TV Show/Season)

Been digging in with FlexGet 1.0r1076-py2.6 with Deluge 1.2.0, libtorrent 0.14.6.0

Got my test config files correct, but am continuously getting "Connection lost to daemon at localhost:58846 reason: [('SSL routines', 'SSL3_READ_BYTES', 'ssl handshake failure')]" when running FlexGet. I've researched this to the best of my ability and am coming up empty handed.

any thoughts?

Thanks in advance!
Hmm, that's a new one for me. Can you get any clients to connect? i.e. the gtk client? Are OpenSSL and PyOpenSSL up to date? Are there any other relevant lines in the log, or in the deluge daemon log?
elsteve
New User
New User
Posts: 8
Joined: Sun Jan 24, 2010 9:26 pm

Re: Deluge 1.2/FlexGet/Ubuntu Karmic 64bit

Post by elsteve »

gazpachoking wrote:
elsteve wrote:I finally gave up on Vuze/Azureus and jumped on the Deluge bandwagon - as a client I'm a big fan - much lighter footprint and snappier...

On Azureus I had an RSS plugin setup to pull one RSS feed (for tv shows) and download newest episodes, hi-def only into respective directories. (TV Show/Season)

Been digging in with FlexGet 1.0r1076-py2.6 with Deluge 1.2.0, libtorrent 0.14.6.0

Got my test config files correct, but am continuously getting "Connection lost to daemon at localhost:58846 reason: [('SSL routines', 'SSL3_READ_BYTES', 'ssl handshake failure')]" when running FlexGet. I've researched this to the best of my ability and am coming up empty handed.

any thoughts?

Thanks in advance!
Hmm, that's a new one for me. Can you get any clients to connect? i.e. the gtk client? Are OpenSSL and PyOpenSSL up to date? Are there any other relevant lines in the log, or in the deluge daemon log?
Very strange...I rebooted and my test configs now are populating Deluge as expected. No clue what was wrong... Now onto writing the correct config file for all 36 shows from the same feed to different directories...

Thanks for your prompt reply, btw.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge 1.2/FlexGet/Ubuntu Karmic 64bit

Post by gazpachoking »

elsteve wrote: Very strange...I rebooted and my test configs now are populating Deluge as expected. No clue what was wrong... Now onto writing the correct config file for all 36 shows from the same feed to different directories...

Thanks for your prompt reply, btw.

Code: Select all

feeds:
  tvfeed:
    rss: http://feedsource.com/feed
    series:
      - show1
      - show2
    deluge:
      movedone: /path/to/tv/%(series_name)s/
Would something like this work for you? This would put all show1 matches in '/path/to/tv/show1/' when completed. You could even do something like this:
movedone: /path/to/tv/%(series_name)s/Season %(series_season)d/ if you like the eps in a season folder too. It's a lot easier than setting up a seperate path for each show.
elsteve
New User
New User
Posts: 8
Joined: Sun Jan 24, 2010 9:26 pm

Re: Deluge 1.2/FlexGet/Ubuntu Karmic 64bit

Post by elsteve »

gazpachoking wrote:
elsteve wrote: Very strange...I rebooted and my test configs now are populating Deluge as expected. No clue what was wrong... Now onto writing the correct config file for all 36 shows from the same feed to different directories...

Thanks for your prompt reply, btw.

Code: Select all

feeds:
  tvfeed:
    rss: http://feedsource.com/feed
    series:
      - show1
      - show2
    deluge:
      movedone: /path/to/tv/%(series_name)s/
Would something like this work for you? This would put all show1 matches in '/path/to/tv/show1/' when completed. You could even do something like this:
movedone: /path/to/tv/%(series_name)s/Season %(series_season)d/ if you like the eps in a season folder too. It's a lot easier than setting up a seperate path for each show.

At first glance that looks like exactly what I want to do - will implement tonight after work and see what happens. BTW - that is much simpler code than what I was planning on - probably wouldn't hurt to go back and re-read the doc again..

Thanks!
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge 1.2/FlexGet/Ubuntu Karmic 64bit

Post by gazpachoking »

elsteve wrote: At first glance that looks like exactly what I want to do - will implement tonight after work and see what happens. BTW - that is much simpler code than what I was planning on - probably wouldn't hurt to go back and re-read the doc again..

Thanks!
Yeah, the deluge plugin and set plugin can handle string replacement from entry, so any of the variables listed on the entry page should work (and some that are undocumented.) You can probably find some other good ideas by reading through the configs in the Cookbook.
Zinom
Member
Member
Posts: 23
Joined: Tue Jan 12, 2010 6:50 pm

Re: Deluge RSS plugin for FlexGet (works with 1.1 and 1.2)

Post by Zinom »

A label-error again I'm afraid.. :(

Code: Select all

--------------------------------------------------------------------------------
RPCRequest: label.add(5_5)
--------------------------------------------------------------------------------
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 281, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/share/pyshared/deluge/plugins/Label-0.1-py2.6.egg/label/core.py", line 188, in add
    CheckInput(not (label_id in self.labels) , _("Label already exists"))
  File "/usr/share/pyshared/deluge/plugins/Label-0.1-py2.6.egg/label/core.py", line 88, in CheckInput
    raise Exception(message)

Exception: Label already exists
--------------------------------------------------------------------------------
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 269, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 771, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 749, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
exceptions.TypeError: exceptions must be classes, or instances, not type
After this the torrent didn't get a label.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge RSS plugin for FlexGet (works with 1.1 and 1.2)

Post by gazpachoking »

Zinom wrote:A label-error again I'm afraid.. :(

Code: Select all

--------------------------------------------------------------------------------
RPCRequest: label.add(5_5)
--------------------------------------------------------------------------------
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 281, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/share/pyshared/deluge/plugins/Label-0.1-py2.6.egg/label/core.py", line 188, in add
    CheckInput(not (label_id in self.labels) , _("Label already exists"))
  File "/usr/share/pyshared/deluge/plugins/Label-0.1-py2.6.egg/label/core.py", line 88, in CheckInput
    raise Exception(message)

Exception: Label already exists
--------------------------------------------------------------------------------
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 269, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 771, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 749, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
exceptions.TypeError: exceptions must be classes, or instances, not type
After this the torrent didn't get a label.
I think this is a bug that I already fixed a bit ago, what version of FlexGet are you using? Try 1089 or higher.
Zinom
Member
Member
Posts: 23
Joined: Tue Jan 12, 2010 6:50 pm

Re: Deluge RSS plugin for FlexGet (works with 1.1 and 1.2)

Post by Zinom »

gazpachoking wrote:I think this is a bug that I already fixed a bit ago, what version of FlexGet are you using? Try 1089 or higher.
I'm currently running revision 1096. I installed an older version of FlexGet before I got the trunk. Could it be that the old version is colliding with the new one? And in that case, how can I uninstall an egg-installation?
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge RSS plugin for FlexGet (works with 1.1 and 1.2)

Post by gazpachoking »

Zinom wrote:
gazpachoking wrote:I think this is a bug that I already fixed a bit ago, what version of FlexGet are you using? Try 1089 or higher.
I'm currently running revision 1096. I installed an older version of FlexGet before I got the trunk. Could it be that the old version is colliding with the new one? And in that case, how can I uninstall an egg-installation?
Well, if you did an egg install first, the flexget executable is probably in a folder that is in your path, so you have to make sure you are running the one from the virtualenv you set up from trunk. i.e. if you have checked out flexget to ~/flexget , execute ~/flexget/bin/flexget . As for removing the old version, I am not sure of a good way to remove an easy_installed package, but you could just delete the egg from you python site-packages directory (there might also be a flexget file in your python scripts directory.) Everything should work fine however (even with both installed) if you are running flexget from your virtualenv (I am assuming that is how you set up your install from trunk.)
Zinom
Member
Member
Posts: 23
Joined: Tue Jan 12, 2010 6:50 pm

Re: Deluge RSS plugin for FlexGet (works with 1.1 and 1.2)

Post by Zinom »

gazpachoking wrote:
Zinom wrote:
gazpachoking wrote:I think this is a bug that I already fixed a bit ago, what version of FlexGet are you using? Try 1089 or higher.
I'm currently running revision 1096. I installed an older version of FlexGet before I got the trunk. Could it be that the old version is colliding with the new one? And in that case, how can I uninstall an egg-installation?
Well, if you did an egg install first, the flexget executable is probably in a folder that is in your path, so you have to make sure you are running the one from the virtualenv you set up from trunk. i.e. if you have checked out flexget to ~/flexget , execute ~/flexget/bin/flexget . As for removing the old version, I am not sure of a good way to remove an easy_installed package, but you could just delete the egg from you python site-packages directory (there might also be a flexget file in your python scripts directory.) Everything should work fine however (even with both installed) if you are running flexget from your virtualenv (I am assuming that is how you set up your install from trunk.)
I have been running it from the virtualenv since you corrected it before, it isn't occurring as often as before but there is still a few labeling-errors popping up from time to time. :S
Post Reply