lad1337 / XDM-main-plugin-repo

The official main Plugin Repository
20 stars 11 forks source link

How does the movers work? #29

Closed thesymbol closed 9 years ago

thesymbol commented 9 years ago

I have been trying to get the movers to work for games, movies and tv-shows, but how does XDM know where the download is located once Sabnzbd has finished downloading to then later on move it?

lad1337 commented 9 years ago

thats where it starts: https://github.com/lad1337/XDM/blob/master/xdm/tasks.py#L261

status, download, path = checker.getElementStaus(element)
# stuff gets checked
ppElement(element, download, path)

then this https://github.com/lad1337/XDM/blob/master/xdm/tasks.py#L299

new_location = initial_path # the must be a hidden reason why i did this
# some loop for the pp plugins
ppResult, _new_location, pp_log = pp.postProcessPath(element, new_location)

so basically the post processor plugins get the location from the downloader plugin -> magic do you get an error ? or does simply nothing happen ? how does you config look for the tv show mover for example

thesymbol commented 9 years ago

Managed to get it working for movies and tv-shows but games takes a while before xdm moves it. but its working now.