[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 RSS plugin for FlexGet

Post by gazpachoking »

Melior wrote: Anyways i did a clean update of flexget, and it seems to work. Just not move completed.
The move completed issue is a bug in deluge. Currently you must save the torrent to your default save location for move completed to function. I have opened a ticket for this issue.
EDIT: Fixed in SVN already, thanks andar.
XyC0

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

Post by XyC0 »

I have tried to make a config.yml with many different rss feeds, but they all fails.
Can someone give me a example to how to make a config.yml with multiple rss feeds.
It is a bit annoying to have to make a config-file for every rss-feed, I be really happy
if someone could help me fix this :)
existsec
New User
New User
Posts: 7
Joined: Sun Nov 08, 2009 4:59 am

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

Post by existsec »

XyC0 wrote:I have tried to make a config.yml with many different rss feeds, but they all fails.
Can someone give me a example to how to make a config.yml with multiple rss feeds.
It is a bit annoying to have to make a config-file for every rss-feed, I be really happy
if someone could help me fix this :)
Try it like this, it's the approach I took. I could probably make it more efficient, but copying and pasting a template block that only needs a couple changes was efficient enough for me. Also, I prefer doing the filtering on the site I'm grabbing from rather than in the config.


Remember use only two spaces for indentions.

Code: Select all

feeds:
  Stargate_Universe:
    rss: http://ezrss.it/search/index.php?show_name=Stargate+Universe&date=&quality=720P&release_group=&mode=rss
    series:
      - Stargate Universe
    deluge:
      path: "/media/Drive1000/TV/%(series_name)s/Season %(series_season)s/"
      label: TV

  The_Big_Bang_Theory:
    rss: http://ezrss.it/search/index.php?show_name=The+Big+Bang+Theory&show_name_exact=true&date=&quality=&release_group=&mode=rss
    series:
      - The Big Bang Theory
    deluge:
      path: "/media/Drive1000/TV/%(series_name)s/Season %(series_season)s/"
      label: TV

  The_Forgotten:
    rss: http://ezrss.it/search/index.php?show_name=The+Forgotten&date=&quality=&release_group=&mode=rss
    series:
      - The Forgotten
    deluge:
      path: "/media/Drive1000/TV/%(series_name)s/Season %(series_season)s/"
      label: TV

  The_Office:
    rss: http://ezrss.it/search/index.php?show_name=The+Office&show_name_exact=true&date=&quality=&release_group=&mode=rss
    series:
      - The Office
    deluge:
      path: "/media/Drive1000/TV/%(series_name)s/Season %(series_season)s/"
      label: TV

  V:
    rss: http://ezrss.it/search/index.php?show_name=V+2009&show_name_exact=true&date=&quality=720P&release_group=&mode=rss
    series:
      - V
    deluge:
      path: "/media/Drive1000/TV/%(series_name)s/Season %(series_season)s/"
      label: TV
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 »

XyC0 wrote:I have tried to make a config.yml with many different rss feeds, but they all fails.
Can someone give me a example to how to make a config.yml with multiple rss feeds.
It is a bit annoying to have to make a config-file for every rss-feed, I be really happy
if someone could help me fix this :)
The FlexGet documentation is getting pretty good and there is an explicit example of how to do this here. Here is a simple example anyway. You can customize it more by looking up the documentation for each of the plugins.

Code: Select all

tvshows:
  series:
    - Stargate Universe
    - Lost
    - Show 3
  deluge: yes
feeds:
  eztv:
    rss: http://siteone.com/feed
    preset: tvshows
  vtv:
    rss: http://sitetwo.com/feed
    preset: tvshows
existsec
New User
New User
Posts: 7
Joined: Sun Nov 08, 2009 4:59 am

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

Post by existsec »

Just got an error, or sort of lack of an error but have a traceback, when Flexget downloads a torrent and sends it to Deluge. I noticed there was a ticket for this on your site but there seems to be a LOT of tickets. Plus it didn't have much information, just the traceback. I've checked this multiple times, it only happens when Flexget closes its connection to Deluge, it just hangs there and doesn't always move on. I have had it do this multiple times but towards the last feed it checks that has an update it just hangs after adding it to Deluge. It still adds to Deluge properly though. I'm running Deluge 1.2.0rc3, not the latest svn, but from the ppa, on karmic 64 and Flexget 1.0r916 beta. When I first used this same version Flexget I never got this error, but I was also using Deluge 1.1.9. Flexget was the answer to what I needed, and still is, hopefully this can help if you're not already aware of it.

The posted ticket regarding the same issue did mention you can't Ctrl-C out you have to either remove .config-lock or kill -9 the process. Same situation for me. For reference, the ticket posted on your site regarding this is #360.

Code: Select all

2009-11-09 08:46 INFO     deluge      Using deluge 1.2 api
2009-11-09 08:46 INFO     deluge      Connecting to daemon at localhost:58846..
2009-11-09 08:46 INFO     deluge      Connected to daemon at localhost:58846..
2009-11-09 08:46 INFO     deluge      Bored to Death 1x8 [HDTV - NOTV] successfully added to deluge.
2009-11-09 08:46 DEBUG    deluge      Bored to Death 1x8 [HDTV - NOTV] label set to 'tv'
2009-11-09 08:46 INFO     deluge      Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
2009-11-09 08:46 DEBUG    deluge      Stopping twisted reactor. result: Connection was closed cleanly.
^CTraceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r916-py2.6.egg/flexget/plugins/output_deluge.py", line 93, in on_feed_output
    self.add_to_deluge12(feed, config)
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r916-py2.6.egg/flexget/plugins/output_deluge.py", line 246, in add_to_deluge12
    reactor.run()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1128, in run
    self.mainLoop()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1137, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 729, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.6/dist-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.
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 »

existsec wrote:Just got an error, or sort of lack of an error but have a traceback, when Flexget downloads a torrent and sends it to Deluge.
I tried something simple to fix that error, try again with flexget svn.
existsec
New User
New User
Posts: 7
Joined: Sun Nov 08, 2009 4:59 am

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

Post by existsec »

Just grabbed build 940 from the svn and got the same behavior the first time I ran it. It only happened on the very last feed. The previous feeds it just flew through even if it had something to download. The previous build I was using sort of lagged on any feeds that required a connection to deluge. Build 940 only hung up on the last feed. So I ran it again with --debug and no problems. It reports twisted reactor stopped and connection closed cleanly. I'll keep an eye on it and do manual runs or at least log my cron runs. Thanks for the quick response.


EDIT: The first run after updating has been the only one to fail so far. It's looking good. Thanks again!
Last edited by existsec on Tue Nov 10, 2009 6:48 am, edited 1 time in total.
jarpublic

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

Post by jarpublic »

I was having the same problem with it hanging after connecting to deluge. I updated to svn build 940. I had the same experience. It failed the same way on the first run, but subsequent runs seem to work. Thanks for the quick fix.

However, now I cannot get anything to be written to the log file. A log file is created at ~/.flexget.log, but it is always empty. Oddly I can't get it to log the output to a file by manually with "flexget > flexget.log". I have log entries earlier today. I think it was when I was using the egg installation. So either I changed some configuration or did something wrong when I updated to the svn build, or their is some sort of bug in my current build. I have searched and can't find a solution. How can I figure out why nothing is logged? Any ideas how to fix it? This is my first attempt at getting things working with flexget so I apologize if this is a simple mistake on my part.
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 »

jarpublic wrote:However, now I cannot get anything to be written to the log file. A log file is created at ~/.flexget.log, but it is always empty. Oddly I can't get it to log the output to a file by manually with "flexget > flexget.log". I have log entries earlier today. I think it was when I was using the egg installation. So either I changed some configuration or did something wrong when I updated to the svn build, or their is some sort of bug in my current build. I have searched and can't find a solution. How can I figure out why nothing is logged? Any ideas how to fix it? This is my first attempt at getting things working with flexget so I apologize if this is a simple mistake on my part.
I'm not sure, you could try #flexget on freenode, see if anyone can help.
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 »

Turns out there was a bug that would cause flexget to hang if you had more than one feed that downloaded a torrent on the same run. (with deluge 1.2) (Melior, existsec, and bjeanes' problem) This problem should be fixed now, let me know if I caused any others.
Post Reply