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

Suggest, post, or discuss plugins for Deluge
Post Reply
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 »

hordak wrote: 2009-12-16 20:22 CRITICAL deluge thebox Deluge module required.
2009-12-16 20:22 INFO feed thebox Aborting feed (plugin: del
uge)
The deluge windows installer does not install deluge into your site-packages directory. You will have to copy the egg there for flexget to be able to use the deluge api. (Copy c:\program files\deluge\deluge-python\deluge-1.2.0_rc4-py2.6.egg\ into c:\python2.6\lib\site-packages, you will have to keep this updated when you update deluge versions)
Is there a link rewrite in FlexGet, like FlexRSS?

For this particular feed in FlexRSS, I had to link rewrite the < > character with <.*> in FlexRSS due to it not having a well formed XML.
I believe you would use the modify plugin to accomplish this.
hordak
Leecher
Leecher
Posts: 59
Joined: Thu Apr 10, 2008 10:59 pm

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

Post by hordak »

I did what you said, and still get the same error. I even tried to install twisted to see if that would fix the problem. It must be one of those Windows install issues.

At least I can download to a common directory and auto add into deluge in the meantime.

I will look into the link modification that you mentioned above for this particular rss feed.

Thank you,

hordak
elson
New User
New User
Posts: 6
Joined: Thu Dec 31, 2009 3:05 pm

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

Post by elson »

When using the label option, deluged logs an error that the label already exists after the first torrent added. The torrent still seems to be added without any other problems however. Here's the relevant log section:

Code: Select all

[ERROR   ] 15:40:59 rpcserver:286 Exception calling RPC request: Label already exists
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 281, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "build/bdist.linux-i686/egg/label/core.py", line 188, in add
    CheckInput(not (label_id in self.labels) , _("Label already exists"))
  File "build/bdist.linux-i686/egg/label/core.py", line 88, in CheckInput
    raise Exception(message)
Exception: Label already exists
Thought you might want to know, thanks for the fantastic plugin :-)
hordak
Leecher
Leecher
Posts: 59
Joined: Thu Apr 10, 2008 10:59 pm

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

Post by hordak »

I got TheBox.bz feed to work now. It took a lot of investigation.

The Deluge plugin still does not work with windows.

Here is how to configure the feed:

Code: Select all

feeds:
  thebox:
    rss: http://thebox.bz/rssdd.xml
    headers:
      cookie: uid=********;pass=***************;session=************
    series:
      - Piers Morgan On
I guess that the cookies portion of the header needs to be added for all feeds.
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 »

hordak wrote: The Deluge plugin still does not work with windows.
Like I said, it does work on windows, you just have to install deluge and it's dependencies into the system python. (the deluge installer doesn't do that on windows) I'm trying to figure out an easier way.
EDIT: I put a little bit of guidance on getting it working at the wiki page.
Last edited by gazpachoking on Tue Jan 05, 2010 4:02 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 (works with 1.1 and 1.2)

Post by gazpachoking »

hordak wrote:

Code: Select all

feeds:
  thebox:
    rss: http://thebox.bz/rssdd.xml
    headers:
      cookie: uid=********;pass=***************;session=************
    series:
      - Piers Morgan On
I guess that the cookies portion of the header needs to be added for all feeds.
If you want the header plugin (or any other plugin) to apply to more than one feed you can put it in a preset.
csbook

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

Post by csbook »

Hey, I've had this running for a couple of weeks and it works great. But the other day I had an issue where two shows that came out on the same day were downloaded but on completion one show was put into the other show's folder. I'm not sure if they were pulled from the RSS feed on the same cycle but I think that's quite likely. Has anyone seen something like this? I'm running flexget 1.0r1043 and deluge 1.2.0-rc5.

Here's my config:

Code: Select all

feeds:
  tv-shows:
    rss: 'http://somerssfeed'
    series:
      settings:
        hdtv:
          quality: hdtv
          set:
            path: /home/Incomplete
            movedone: "/home/My Videos/TV/%(series_name)s/"
      hdtv:
        - Show A
        - Show B
        - etc
yzf600

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

Post by yzf600 »

I'm running 1.2.0-rc5 & flexget. I can't get flexget to authenticate:

Code: Select all

2010-01-12 22:47 INFO     deluge      all             Using deluge 1.2 api
2010-01-12 22:47 INFO     feed        all             Produced 39 entries.
2010-01-12 22:47 INFO     feed        all             Accepted: 1 (Rejected: 0 Undecided: 38 Failed: 0)
2010-01-12 22:47 INFO     deluge      all             Downloading: Big Love S04E01 HDTV XviD-NoTV
2010-01-12 22:47 INFO     deluge      all             Connecting to daemon at localhost:58846..
2010-01-12 22:47 INFO     deluge      all             Connected to daemon at localhost:58846..
2010-01-12 22:47 ERROR    deluge      all             RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(localclient, 56f5861e74f5151fd9c39ab2bb39c4ba1e41165d)
--------------------------------------------------------------------------------
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 245, in dispatch
    ret = component.get("AuthManager").authorize(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/deluge/core/authmanager.py", line 93, in authorize
    raise BadLoginError("Password does not match")

BadLoginError: Password does not match
--------------------------------------------------------------------------------
2010-01-12 22:47 INFO     deluge      all             connect failed result: [Failure instance: Traceback (failure with no frames): <class 'deluge.ui.client.DelugeRPCError'>: <deluge.ui.client.DelugeRPCError object at 0xa14828c>
]
2010-01-12 22:47 INFO     deluge      all             Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
I've tried to delete my ~/.config/deluge/auth file, but it doesn't help any. My gui client connects to the daemon just fine. I have "accept remote connections" selected in the options. Anyone have any clues what I can try next? Here is my auth file:

localclient:56f5861e74f5151fd9c39ab2bb39c4ba1e41165d:10
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

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

Post by johnnyg »

yzf600 wrote:I'm running 1.2.0-rc5 & flexget. I can't get flexget to authenticate:

Code: Select all

2010-01-12 22:47 INFO     deluge      all             Using deluge 1.2 api
2010-01-12 22:47 INFO     feed        all             Produced 39 entries.
2010-01-12 22:47 INFO     feed        all             Accepted: 1 (Rejected: 0 Undecided: 38 Failed: 0)
2010-01-12 22:47 INFO     deluge      all             Downloading: Big Love S04E01 HDTV XviD-NoTV
2010-01-12 22:47 INFO     deluge      all             Connecting to daemon at localhost:58846..
2010-01-12 22:47 INFO     deluge      all             Connected to daemon at localhost:58846..
2010-01-12 22:47 ERROR    deluge      all             RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(localclient, 56f5861e74f5151fd9c39ab2bb39c4ba1e41165d)
--------------------------------------------------------------------------------
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 245, in dispatch
    ret = component.get("AuthManager").authorize(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/deluge/core/authmanager.py", line 93, in authorize
    raise BadLoginError("Password does not match")

BadLoginError: Password does not match
--------------------------------------------------------------------------------
2010-01-12 22:47 INFO     deluge      all             connect failed result: [Failure instance: Traceback (failure with no frames): <class 'deluge.ui.client.DelugeRPCError'>: <deluge.ui.client.DelugeRPCError object at 0xa14828c>
]
2010-01-12 22:47 INFO     deluge      all             Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
I've tried to delete my ~/.config/deluge/auth file, but it doesn't help any. My gui client connects to the daemon just fine. I have "accept remote connections" selected in the options. Anyone have any clues what I can try next? Here is my auth file:

localclient:56f5861e74f5151fd9c39ab2bb39c4ba1e41165d:10
You need to add a user to the auth file.
See here: http://dev.deluge-torrent.org/wiki/User ... entication
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 »

csbook wrote:Hey, I've had this running for a couple of weeks and it works great. But the other day I had an issue where two shows that came out on the same day were downloaded but on completion one show was put into the other show's folder. I'm not sure if they were pulled from the RSS feed on the same cycle but I think that's quite likely. Has anyone seen something like this? I'm running flexget 1.0r1043 and deluge 1.2.0-rc5.
Yeah, I found this bug yesterday, I have found the cause, but cannot commit the fix right now, should be by the end of the day. You can check the status here.
EDIT: Fixed in r1086
yzf600 wrote:I'm running 1.2.0-rc5 & flexget. I can't get flexget to authenticate.
Are you running flexget on the same machine and as the same user as deluge? If so, just leave all the credentials out (username, pass, host, port) of the flexget config and it should work. If not, johnnyg is correct, you need to add an user to your auth file and use that information in the flexget config.
Last edited by gazpachoking on Thu Jan 14, 2010 4:45 am, edited 1 time in total.
Post Reply