Problem with Movedone - Deluge 1.3

Suggest, post, or discuss plugins for Deluge
Post Reply
IOWNSU
New User
New User
Posts: 3
Joined: Sat Oct 30, 2010 8:09 am
Contact:

Problem with Movedone - Deluge 1.3

Post by IOWNSU »

Hi All,

Im having problems with flexget and its movedone functionality.

Flexget Version:

Code: Select all

ryan@data:~/Downloads$ flexget -V
FlexGet 1.0r1569
Below is my config.yml for flexget

Code: Select all

presets:
  global:
    deluge:
      user: ryan
      pass: deluge
      ratio: 5.0
      queuetotop: yes

  TV:
    series:
      settings:
        HDTV:
          exact: yes
          set:
            content_filename: "%(series_name)s - S%(series_season)02dE%(series_episode)02d"
            path: "/var/cache/deluge"
            movedone: "/media/tv/%(series_name)s/Season %(series_season)s/"

      HDTV:
        - Glee
        - South Park
        - Stargate Universe
        - Supernatural
        - Modern Family
        - Primeval
        - Robot Chicken
        - Futurama
        - The Simpsons
        - House

feeds:
  EZRSS:
    rss: http://www.ezrss.it/feed/
    preset: TV
My problem is that when a new download starts, it starts downloading to /var/cache/deluge (Which it should)
However, when the torrent completes, The destination directory doesnt get created (At All), and if the directory already exists, the file doesnt get moved.
I'm not sure if this is a bug with deluge or flexget.

I am running Ubuntu 10.10 Maverick Meerkat with Deluge 1.3
(This was working perfectly on Ubuntu 10.04 Lucid Lynx with Deluge 1.2)

Also, does the execute plugin not function at all?

Any help greatly appreciated.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Problem with Movedone - Deluge 1.3

Post by gazpachoking »

Is the move completed folder being set in deluge? Check the options tab one of the torrents that flexget adds before it gets done downloading. If the move complete path is set correctly there, then flexget has done it's job. Deluge should create the folder and move the files when the download is complete. Have you checked that the permissions are correct on that folder (such that deluge's user can write there)?
IOWNSU
New User
New User
Posts: 3
Joined: Sat Oct 30, 2010 8:09 am
Contact:

Re: Problem with Movedone - Deluge 1.3

Post by IOWNSU »

gazpachoking wrote:Is the move completed folder being set in deluge? Check the options tab one of the torrents that flexget adds before it gets done downloading. If the move complete path is set correctly there, then flexget has done it's job. Deluge should create the folder and move the files when the download is complete. Have you checked that the permissions are correct on that folder (such that deluge's user can write there)?
Permissions are fine (They havent changed), deluged runs by my user (ryan) on system boot.

Movedone for all torrents added by flexget is being set to /home/ryan/Completed, instead of /media/tv/SERIES/SEASON NUMBER/EPISODE.whatever

Flexget logfile contents:

Code: Select all

2010-11-10 17:30 INFO     download      EZRSS           Downloading: Stargate Universe - The Greater Good 2x7 [HDTV - FQM]
2010-11-10 17:30 INFO     deluge        EZRSS           Connecting to daemon at localhost:58846..
2010-11-10 17:30 INFO     deluge        EZRSS           Connected to daemon at localhost:58846..
2010-11-10 17:30 INFO     deluge        EZRSS           Stargate Universe - The Greater Good 2x7 [HDTV - FQM] is already loaded in deluge, cannot set options.
2010-11-10 17:30 INFO     deluge        EZRSS           Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
2010-11-11 17:30 INFO     download      EZRSS           Downloading: South Park - Coon Vs Coon and Friends 14x13 [HDTV - FQM]
2010-11-11 17:30 INFO     deluge        EZRSS           Connecting to daemon at localhost:58846..
2010-11-11 17:30 INFO     deluge        EZRSS           Connected to daemon at localhost:58846..
2010-11-11 17:30 INFO     deluge        EZRSS           South Park - Coon Vs Coon and Friends 14x13 [HDTV - FQM] is already loaded in deluge, cannot set options.
2010-11-11 17:30 INFO     deluge        EZRSS           Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
I'l get a deluged log once the next download commences from flexget.

Permissions and contents of /media + /media/tv

Code: Select all

ryan@data:/media$ echo "DIRECTORY:" ; pwd ; echo "CONTENTS OF `pwd`"; ls -l ; echo "CONTENTS OF `pwd`/tv" ; ls -lh `pwd`/tv/
DIRECTORY:
/media
CONTENTS OF /media
total 4
lrwxrwxrwx 1 root root    7 2010-09-06 19:22 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2010-08-15 11:16 floppy0
lrwxrwxrwx 1 ryan ryan   32 2010-10-30 20:38 tv -> /var/lib/mythtv/videos/TV Shows/
CONTENTS OF /media/tv
total 72K
drwxrwxrwx  2 ryan ryan 4.0K 2010-09-28 21:41 Alice.2009
drwxrwxrwx  2 ryan ryan 4.0K 2010-09-28 21:42 Death Note
drwxrwxrwx  3 ryan ryan 4.0K 2010-09-28 21:41 Dragon Ball Kai
drwxrwxrwx  5 ryan ryan 4.0K 2010-09-28 21:41 Drawn Together
drwxrwxrwx  4 ryan ryan 4.0K 2010-09-28 21:41 Glee
drwxrwxrwx  2 ryan ryan 4.0K 2010-10-08 00:29 Highschool of the Dead
drwxrwxrwx  3 ryan ryan 4.0K 2010-10-21 00:25 House
drwxrwxrwx  3 ryan ryan 4.0K 2010-09-28 21:42 Knight Rider (2008)
drwxrwxrwx  3 ryan ryan 4.0K 2010-09-28 21:41 Modern Family
drwxrwxrwx  2 ryan ryan 4.0K 2010-11-05 00:42 Panty & Stocking with Garterbelt
drwxrwxrwx 10 ryan ryan 4.0K 2010-11-05 00:36 Red vs. Blue
drwxrwxrwx 16 ryan ryan 4.0K 2010-09-28 21:42 South Park
drwxrwxrwx  4 ryan ryan 4.0K 2010-09-29 18:30 Stargate Universe
drwxrwxrwx  9 ryan ryan 4.0K 2010-08-07 19:51 Star Trek The Next Generation
drwxrwxrwx  9 ryan ryan 4.0K 2010-11-05 11:14 Star Trek Voyager
drwxrwxrwx  8 ryan ryan 4.0K 2010-09-28 21:41 Supernatural
drwxrwxrwx  3 ryan ryan 4.0K 2010-10-07 11:33 The Simpsons
drwxrwxrwx  7 ryan ryan 4.0K 2010-09-28 21:42 Viva La Bam
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Problem with Movedone - Deluge 1.3

Post by gazpachoking »

This line is rather telling:

Code: Select all

2010-11-11 17:30 INFO     deluge        EZRSS           South Park - Coon Vs Coon and Friends 14x13 [HDTV - FQM] is already loaded in deluge, cannot set options.
If a torrent is already loaded in deluge, flexget is unable to set options like movedone for it. Are you perhaps also using the download plugin in flexget which is downloading to a deluge autoadd folder? For some more interactive help try stopping by #flexget on freenode.
IOWNSU
New User
New User
Posts: 3
Joined: Sat Oct 30, 2010 8:09 am
Contact:

Re: Problem with Movedone - Deluge 1.3

Post by IOWNSU »

Im not uding the download plugin, which is the strange thing.

I think yes i might need to ask on freenode. Cheers. I'l post my solution once its found :)
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Problem with Movedone - Deluge 1.3

Post by gazpachoking »

IOWNSU and I managed to figure this issue out in IRC. It turns out the deluge execute plugin was crashing when torrents were added, interrupting the automated process of flexget.
Post Reply