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

Suggest, post, or discuss plugins for Deluge
infinityvoid

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

Post by infinityvoid »

Greets, I am using 1.0 BETA r1108 with deluge 1.2.0 and am getting an error that I have no idea how to handle at this point. The error reads (show name "is already loaded in deluge, cannot set options.")

My box is set up do that deluge is running under the user deluge.

Here is my config

Code: Select all

feeds:
  tv-shows:
    rss: http://www.tvnzb.com/tvnzb_new.rss
    series:
      settings:
        720p:
          timeframe: 12 hours
          quality: 720p
          set:
            path: ~/torrents/
            movedone: "/mnt/tv/%(series_name)s/Season %(series_season)d/"
            label: tv
            ratio: 2.0

      720p:
        - CSI:
            exact: yes
        - Caprica
        - Castle
        - Deadliest Catch
        - Dexter
        - Dirty Jobs
        - Doctor Who
        - Fifth Gear
        - Fringe
        - Glee
        - Hells Kitchen
        - Hung
        - Lost
        - Man vs. Wild
        - Mythbusters
        - Paradox
        - Stargate Universe
        - The Big Bang Theory
        - The Daily Show
        - The Mentalist
        - Top Chef
        - Top Gear
        - Top Gear Australia
        - Torchwood
        - True Blood
        - V
        - White Collar

    deluge:
      user: flexget
      pass: flexpass
Here are the results of a flexget --test

Code: Select all

infinityvoid@ubuntu:~/.flexget$ flexget --test
2010-02-08 22:15 INFO     manager                       Test mode, creating a copy from database ...
2010-02-08 22:15 INFO     manager                       Test database created
2010-02-08 22:15 INFO     deluge        tv-shows        Using deluge 1.2 api
2010-02-08 22:15 INFO     feed          tv-shows        Produced 50 entries.
2010-02-08 22:15 INFO     series        tv-shows        Auto enabling exact matching for series Top Gear (reason Top Gear Australia)
2010-02-08 22:15 INFO     feed          tv-shows        Accepted: 0 (Rejected: 8 Undecided: 42 Failed: 0)
2010-02-08 22:15 INFO     manager                       Removed test database
infinityvoid@ubuntu:~/.flexget$ flexget --initdb
2010-02-08 22:15 WARNING  manager                       Database has already been initialized.
2010-02-08 22:15 INFO     deluge        tv-shows        Using deluge 1.2 api
2010-02-08 22:15 INFO     feed          tv-shows        Produced 50 entries.
2010-02-08 22:15 INFO     series        tv-shows        Auto enabling exact matching for series Top Gear (reason Top Gear Australia)
2010-02-08 22:15 INFO     feed          tv-shows        Accepted: 0 (Rejected: 8 Undecided: 42 Failed: 0)
infinityvoid@ubuntu:~/.flexget$ rm db*
infinityvoid@ubuntu:~/.flexget$ flexget --initdb
2010-02-08 22:15 INFO     deluge        tv-shows        Using deluge 1.2 api
2010-02-08 22:15 INFO     feed          tv-shows        Produced 50 entries.
2010-02-08 22:15 INFO     series        tv-shows        Auto enabling exact matching for series Top Gear (reason Top Gear Australia)
2010-02-08 22:15 INFO     feed          tv-shows        Accepted: 5 (Rejected: 0 Undecided: 45 Failed: 0)
2010-02-08 22:15 INFO     deluge        tv-shows        Downloading: Caprica.S01E03.The.Reins.of.A.Waterfall.DD51.720p.WEB-DL.AVC-FUSiON
2010-02-08 22:15 INFO     deluge        tv-shows        Downloading: Castle.2009.S02E15.720p.HDTV.x264-CTU
2010-02-08 22:15 INFO     deluge        tv-shows        Downloading: Fringe.S02E15.Jacksonville.720p.WEB-DL.DD5.1.h.264-TjHD
2010-02-08 22:15 INFO     deluge        tv-shows        Downloading: Man.vs.Wild.S06E12.720p.HDTV.x264-MiRAGETV
2010-02-08 22:16 INFO     deluge        tv-shows        Downloading: The.Big.Bang.Theory.S03E15.720p.HDTV.x264-CTU
2010-02-08 22:16 INFO     deluge        tv-shows        Connecting to daemon at localhost:58846..
2010-02-08 22:16 INFO     deluge        tv-shows        Connected to daemon at localhost:58846..
2010-02-08 22:16 INFO     deluge        tv-shows        Caprica.S01E03.The.Reins.of.A.Waterfall.DD51.720p.WEB-DL.AVC-FUSiON is already loaded in deluge, cannot set options.
2010-02-08 22:16 INFO     deluge        tv-shows        Castle.2009.S02E15.720p.HDTV.x264-CTU is already loaded in deluge, cannot set options.
2010-02-08 22:16 INFO     deluge        tv-shows        Fringe.S02E15.Jacksonville.720p.WEB-DL.DD5.1.h.264-TjHD is already loaded in deluge, cannot set options.
2010-02-08 22:16 INFO     deluge        tv-shows        Man.vs.Wild.S06E12.720p.HDTV.x264-MiRAGETV is already loaded in deluge, cannot set options.
2010-02-08 22:16 INFO     deluge        tv-shows        The.Big.Bang.Theory.S03E15.720p.HDTV.x264-CTU is already loaded in deluge, cannot set options.
2010-02-08 22:16 INFO     deluge        tv-shows        Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
And here is the output of flexget --download

Code: Select all

infinityvoid@ubuntu:~/.flexget$ flexget --download
-- Downloads: -----------------------------------------------------------------
2010-02-08 22:34 INFO     deluge        tv-shows        Using deluge 1.2 api
infinityvoid@ubuntu:~/.flexget$
From my understanding you can see that deluge has not already loaded the above files. But I really have no clue on how to proceed with this issue. Any and all assistance is greatly welcome. Thanks in advance.

~infinityvoid~
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: 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
Hmm, not sure what could be going on. I explicitly check if a label exists before I call the code to create one. Do you have a reliable way to reproduce this problem?
infinityvoid wrote:Greets, I am using 1.0 BETA r1108 with deluge 1.2.0 and am getting an error that I have no idea how to handle at this point. The error reads (show name "is already loaded in deluge, cannot set options.")
Are you sure that the torrents it was trying to add are not already loaded in deluge? I haven't experienced this message when that was not the case. The --download option for flexget will only show you files that have been downloaded with the download plugin (not the deluge plugin.) I have been planning on making a --history option to list what was gotten by any plugin, but I haven't gotten around to it yet. If these torrents are indeed not running in deluge, can you capture some debug logs from both flexget and deluged of the problem happening? That might give me some more insight as to what is going on.
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: 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
Hmm, not sure what could be going on. I explicitly check if a label exists before I call the code to create one. Do you have a reliable way to reproduce this problem?
No I'm afraid I can't, BUT, I noticed that if one torrent glitches with the labeling it's often more torrents of the same tracker/rss-feed that misses the label (from that "flexget-session"). I cannot remember a time when two torrents gets mislabeled and they are from two different trackers. At least not since the last fix.

So, the question is, how can the label-error get fixed when flexget changes rss-feed. Is there some connection, does the labeling-code reset when it changes, or is it something else that resets?
infinityvoid

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

Post by infinityvoid »

Zinom wrote:
infinityvoid wrote:Greets, I am using 1.0 BETA r1108 with deluge 1.2.0 and am getting an error that I have no idea how to handle at this point. The error reads (show name "is already loaded in deluge, cannot set options.")
Are you sure that the torrents it was trying to add are not already loaded in deluge? I haven't experienced this message when that was not the case. The --download option for flexget will only show you files that have been downloaded with the download plugin (not the deluge plugin.) I have been planning on making a --history option to list what was gotten by any plugin, but I haven't gotten around to it yet. If these torrents are indeed not running in deluge, can you capture some debug logs from both flexget and deluged of the problem happening? That might give me some more insight as to what is going on.
Perhaps I don't understand what constitutes as a torrent already being loaded into deluge. I assume this means that the torrent is loaded up and downloading, as in you'd be able to see it via a gui listed under the "all" state. If that is the case then none of the torrents which are eligible for download are currently loaded.

I'd love to pull some debug logs for you, however I don't know how to go about procuring them so some instruction would be appreciated. Thanks for the quick reply.

Cheers

~infinityvoid~
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 »

infinityvoid wrote: Perhaps I don't understand what constitutes as a torrent already being loaded into deluge. I assume this means that the torrent is loaded up and downloading, as in you'd be able to see it via a gui listed under the "all" state. If that is the case then none of the torrents which are eligible for download are currently loaded.

I'd love to pull some debug logs for you, however I don't know how to go about procuring them so some instruction would be appreciated. Thanks for the quick reply.

Cheers

~infinityvoid~
Hmm, something funny must be going on. Try running the deluge daemon in debug mode with the command 'deluged -L debug -l <logfile>' where <logfile> is the location where you want it to log. Then run flexget with some failed adds, and let me see what the deluge log file looks like. OOH, I just had an idea, does your flexget user authenticate as Admin in your deluge auth file?
Zinom wrote: No I'm afraid I can't, BUT, I noticed that if one torrent glitches with the labeling it's often more torrents of the same tracker/rss-feed that misses the label (from that "flexget-session"). I cannot remember a time when two torrents gets mislabeled and they are from two different trackers. At least not since the last fix.

So, the question is, how can the label-error get fixed when flexget changes rss-feed. Is there some connection, does the labeling-code reset when it changes, or is it something else that resets?
I'm not sure what could be going on, I have a couple things I can try, but if I can't reproduce the problem it's really hard to figure out what is causing it or if my potential solution fixed anything. I'll put an update here if I do anything I think will help you. EDIT: I think I am reproducing this problem, let me play around for a bit, see what I can do. EDIT2: Try r1109, I think I fixed it.
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'm not sure what could be going on, I have a couple things I can try, but if I can't reproduce the problem it's really hard to figure out what is causing it or if my potential solution fixed anything. I'll put an update here if I do anything I think will help you. EDIT: I think I am reproducing this problem, let me play around for a bit, see what I can do. EDIT2: Try r1109, I think I fixed it.
You're amazing! I'll test it for a while and see what happens. I'll be back with my report later!
sziggle
New User
New User
Posts: 6
Joined: Wed Feb 10, 2010 6:06 pm

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

Post by sziggle »

hi -- thanks for building this great plugin. just what i was looking for.

i have a question or two about how the movedone option works. does this option get triggered when the file specified in the torrent has completed downloading, or when it has completed seeding?

if when it has finished downloading, is deluge made aware of its new location to continue seeding until it hits the preferred ratio?
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 »

sziggle wrote:hi -- thanks for building this great plugin. just what i was looking for.

i have a question or two about how the movedone option works. does this option get triggered when the file specified in the torrent has completed downloading, or when it has completed seeding?

if when it has finished downloading, is deluge made aware of its new location to continue seeding until it hits the preferred ratio?
I actually think the movedone option is not an option only in flexget but in deluge also. So maybe it's not the right thread to ask about. Anyhow..the movedone option moves the files when it has finished downloading, and yes, it knows where the files are moved too and continues to seed.
sziggle
New User
New User
Posts: 6
Joined: Wed Feb 10, 2010 6:06 pm

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

Post by sziggle »

Zinom wrote:I actually think the movedone option is not an option only in flexget but in deluge also. So maybe it's not the right thread to ask about. Anyhow..the movedone option moves the files when it has finished downloading, and yes, it knows where the files are moved too and continues to seed.
ah, thanks. deluge (and flexget) n00b. sorry for the noise.
infinityvoid

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

Post by infinityvoid »

Thanks for all the support guys, turns out is was a stupid user error. :roll:

I was using an rss that was for nbz files and not torrents. :oops:

After moving to the correct feeds low and behold all my problems cleared up. :lol:

Sorry for the grief and thanks for the understanding. Cheers.
Post Reply