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

Suggest, post, or discuss plugins for Deluge
cgf

Re: Deluge RSS plugin for FlexGet

Post by cgf »

I'm having a hard time getting this to work.

I've installed flexget but when I try to run it, after modifying my configuration, it complains that deluge.ui.client isn't found.

I've tried moving the deluge configuration egg into flexget's copy of the python site-lib and then it eventually complains that gobject isn't found.

I know I must be missing something simple but I don't know what it is.

I'm using deluge 1.1.9 and the svn version of flexget.

I'd appreciate help getting this working since it seems like it is exactly what I need.
cgf

Re: Deluge RSS plugin for FlexGet

Post by cgf »

Oh, and of course, the one piece of the puzzle that I forgot to mention was: I'm running on Vista.

I see that the ui stuff is nicely installed in a standard location on my linux system. Installing deluge with the windows installer doesn't seem to install the api where python can use it on windows?
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge RSS plugin for FlexGet

Post by gazpachoking »

Yeah, I was wondering whether it would work as nice on Windows as it does on linux. Not sure how to fix this atm, but I am looking to migrate my deluge install to a Windows Home Server box, so I'll let you know if I have any luck getting it to work. Anyone else used Flexget with Deluge on Windows?
Ghent

Re: Deluge RSS plugin for FlexGet

Post by Ghent »

I've gotten Flexget working with Deluge as well. I thought I would link my configuration file, as it's a bit more advanced:

Code: Select all

#
# $Id: flexget.yml 2 2009-10-17 23:48:06Z ghent $
#
# vim: expandtab tabstop=2:

global:
  make_rss: /tmp/flexget.rss
  regexp:
    reject:
      - ac3
      - complete
      - dd5
      - dsr
      - dvdr
      - french
      - german
      - iphone
      - ipod
      - m4v
      - midseason
      - mixed
      - mp4
      - multisubs
      - nuke
      - rar
      - readnfo
      - sub
      - web
      - \.1080\.
      - \.1080p\.

feeds:
  sitename:
    headers:
      cookie: "uid=*; pass=*"
    rss: http://www.site.com/rss.php?uid=*&passkey=*
    series:
      settings:
        720p_favorite:
          quality: 720p
          set:
            # favorites: never delete or stop seeding
            label: favorites
            queuetotop: yes
        normal_favorite:
          set:
            label: favorites
            queuetotop: yes
        normal:
          set:
            # shows: delete when 2.00 share ratio reached
            label: shows

      # I want these favorites in high def!
      720p_favorite:
        - favorite series 1
        - favorite series 2

      # These favorites in HDTV/PDTV is fine
      normal_favorite:
        - favorite series 3
        - favorite series 4

      # Everything else is HDTV/PDTV as well
      normal:
        - series 1
        - series 2
        - series with a space name
        - series

    deluge: yes
    # The labels settings above control my queuing, ratio requirements
    # and storage location. This is accomplished by enabling the labels
    # plugin in Deluge, and then right-clicking on a label and changing
    # its properties.
Last edited by Ghent on Mon Oct 19, 2009 5:46 pm, edited 1 time in total.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge RSS plugin for FlexGet

Post by gazpachoking »

cgf wrote:I'm having a hard time getting this to work.

I've installed flexget but when I try to run it, after modifying my configuration, it complains that deluge.ui.client isn't found.

I've tried moving the deluge configuration egg into flexget's copy of the python site-lib and then it eventually complains that gobject isn't found.
OK, I had those same problems when I tried on windows, I had to install pygobject then pyxdg from here http://download.deluge-torrent.org/windows/deps/
Haven't gotten everything fully configured on windows yet, but it added a test torrent fine.
EDIT: Seems to be running perfectly, got all of last night's shows just fine. Probably gunna test with 1.2 again once rc2 comes out, should work fine with that too though.
dack
New User
New User
Posts: 7
Joined: Sun Feb 01, 2009 10:20 pm

Re: Deluge RSS plugin for FlexGet

Post by dack »

This is awesome! FlexGet is a big improvement from the other RSS plugins. Thank you so much for this!
Melior

Re: Deluge RSS plugin for FlexGet

Post by Melior »

gazpachoking:
Hi again. I'm having a hard time to get this work properly with deluge 1.2 trunk version. All settings are set correctly, but many torrents isn't received by deluge and sometimes flexget just hang after sending a torrent to deluge. Is this really working for deluge 1.2?
Btw. I sent you an email. Could you please some into #flexget channel :) Thanks
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge RSS plugin for FlexGet

Post by gazpachoking »

Melior wrote:gazpachoking:
Hi again. I'm having a hard time to get this work properly with deluge 1.2 trunk version. All settings are set correctly, but many torrents isn't received by deluge and sometimes flexget just hang after sending a torrent to deluge. Is this really working for deluge 1.2?
Btw. I sent you an email. Could you please some into #flexget channel :) Thanks
Yeah, I haven't tested it since I wrote it, so there might be some problems. What OS are you running on, what version of FlexGet? Also, run flexget --debug, and see what sort of errors you are getting (if any). Does it say something like 'Using deluge 1.1 api'? If so, try removing the deluge 1.1 stuff from your site-packages directory, it defaults to the 1.1 api if it sees it installed.
Melior

Re: Deluge RSS plugin for FlexGet

Post by Melior »

gazpachoking wrote:
Melior wrote:gazpachoking:
Hi again. I'm having a hard time to get this work properly with deluge 1.2 trunk version. All settings are set correctly, but many torrents isn't received by deluge and sometimes flexget just hang after sending a torrent to deluge. Is this really working for deluge 1.2?
Btw. I sent you an email. Could you please some into #flexget channel :) Thanks
Yeah, I haven't tested it since I wrote it, so there might be some problems. What OS are you running on, what version of FlexGet? Also, run flexget --debug, and see what sort of errors you are getting (if any). Does it say something like 'Using deluge 1.1 api'? If so, try removing the deluge 1.1 stuff from your site-packages directory, it defaults to the 1.1 api if it sees it installed.
Well having trouble with move completed. I would really like this to work! I'm running it on debian lenny(5.0). Despite running flexget in --debug it just freezes.
Just added a bit of code:
2009-10-20 21:13 INFO deluge Using deluge 1.2 api
2009-10-20 21:13 INFO deluge Connecting to daemon at 127.0.0.1:58846..
2009-10-20 21:13 INFO deluge Connected to daemon at 127.0.0.1:58846..
2009-10-20 21:13 INFO deluge torrent is already loaded in deluge, cannot set movedone, label, or queuetotop.
2009-10-20 21:13 INFO deluge torrent is already loaded in deluge, cannot set movedone, label, or queuetotop.
2009-10-20 21:13 INFO deluge Connection lost to daemon at 127.0.0.1:58846 reason: Connection was closed cleanly.
^CTraceback (most recent call last):
File "/home/admin/flexget-dev/flexget/plugins/output_deluge.py", line 85, in on_feed_output
self.add_to_deluge12(feed, config)
File "/home/admin/flexget-dev/flexget/plugins/output_deluge.py", line 232, in add_to_deluge12
reactor.run()
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1128, in run
self.mainLoop()
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1137, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 729, in runUntilCurrent
f(*a, **kw)
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 527, in stop
"Can't stop reactor that isn't running.")
twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running.
Please note that this torrent was added before. But flexget just freezes anyways! And as you can see it's using api 1.2 correctly. But still. Anyways i did a clean update of flexget, and it seems to work. Just not move completed. But think it's acting a little bit odd, maybe missing torrents and such things. Maybe you could have a look on it. :)
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge RSS plugin for FlexGet

Post by gazpachoking »

I just tested Deluge 1.2_RC svn branch, and flexget trunk, and everything worked fine for me with movedone. I tested on a Jaunty VM. It seems like for you reactor.stop() is getting called too many times, which causes an unhandled exception. I'll look into it a little more later, but I can't understand why I don't have the same problem.
Post Reply