Extractor and execute plugin
Extractor and execute plugin
They do not seem to work, I've been told that it's because it's a port and it doesn't know where to find the binaries to extract or execute. My question is can I somehow get these working or will they be updated in the future to work under windows ?
Re: Extractor and execute plugin
Ah good, so it's not just me. biocore- did you ever have any luck with this?
Re: Extractor and execute plugin
No luck, had a look around in the files but I have zero experience in python and I'm unsure how or where to start editing.
Re: Extractor and execute plugin
Cas has just opened a bug ticket for this (thanks Cas) located here: http://dev.deluge-torrent.org/ticket/1208
As he notes in the ticket, the "Torrents Completed" event in the Execute plugin does kinda work. I passed in a simple batch file that echoes what Deluge sends to it (I put the Windows path, "C:\echo.bat". No cygwin paths or anything like that), and here's an example of the output (data changed):
ARG1: bce7ae79e37eeefc01d6e2183cd065115e213020
ARG2: "The Deluges - Deluge City (2009)"
ARG3: "C:\Documents and Settings\Administrator"
It appears to send the torrent hash, the torrent name/folder, and the user directory. Note that ARG3 is NOT the download location, only the user directory. At least in my case.
I thought this was worth noting, because I was under the impression that the Execute did not work at all on Windows. It appears that it kinda does.
[Edit] Also, it doesn't appear to work with any command after the first one in the list.
As he notes in the ticket, the "Torrents Completed" event in the Execute plugin does kinda work. I passed in a simple batch file that echoes what Deluge sends to it (I put the Windows path, "C:\echo.bat". No cygwin paths or anything like that), and here's an example of the output (data changed):
ARG1: bce7ae79e37eeefc01d6e2183cd065115e213020
ARG2: "The Deluges - Deluge City (2009)"
ARG3: "C:\Documents and Settings\Administrator"
It appears to send the torrent hash, the torrent name/folder, and the user directory. Note that ARG3 is NOT the download location, only the user directory. At least in my case.
I thought this was worth noting, because I was under the impression that the Execute did not work at all on Windows. It appears that it kinda does.
[Edit] Also, it doesn't appear to work with any command after the first one in the list.
Re: Extractor and execute plugin
I did not realise that Deluge passes args to the command. I found that you really need to use batch files as the plugin cannot seem to handle a command and its arguments. See my other post for a little bit more detail http://forum.deluge-torrent.org/viewtop ... 65#p132165
Re: Extractor and execute plugin
I just wanted to followup here with you, since I had some fruitful investigation this morning:
http://forum.deluge-torrent.org/viewtop ... 5&p=105855 tells me that there are three parameters that this Execute plugin passes:
PARM1 = $TORRENT_ID
PARM2 = $TORRENT_NAME
PARM3 = $TORRENT_PATH
These parameters are sourced in http://git.deluge-torrent.org/deluge/pl ... 1.2-stable
I'm using Deluge on Windows XP, and intended to write a python script that will iterate through all of the files in the torrent and then Autocreq them against AniDB.net. For me, adding the tracker information would be useful, or perhaps tag information here. It would be nice if I could isolate my anime torrents so I don't bother hashing .iso files or whatever and trying to see if the exist in AniDB. I suppose I could use the save location for that though.
Anyway, once the script is ready, I intend to make it available (as a template, if nothing else).
For interested parties, the reason why I need to iterate (instead of just using the path) is because sometimes these shows have like 50 episodes in a single directory, and so if I'm getting them via RSS (FlexGet) and dumping them into %(series_name)s directories, I don't want to hash all the files each and every time a new one comes along.
http://forum.deluge-torrent.org/viewtop ... 5&p=105855 tells me that there are three parameters that this Execute plugin passes:
PARM1 = $TORRENT_ID
PARM2 = $TORRENT_NAME
PARM3 = $TORRENT_PATH
These parameters are sourced in http://git.deluge-torrent.org/deluge/pl ... 1.2-stable
I'm using Deluge on Windows XP, and intended to write a python script that will iterate through all of the files in the torrent and then Autocreq them against AniDB.net. For me, adding the tracker information would be useful, or perhaps tag information here. It would be nice if I could isolate my anime torrents so I don't bother hashing .iso files or whatever and trying to see if the exist in AniDB. I suppose I could use the save location for that though.
Anyway, once the script is ready, I intend to make it available (as a template, if nothing else).
For interested parties, the reason why I need to iterate (instead of just using the path) is because sometimes these shows have like 50 episodes in a single directory, and so if I'm getting them via RSS (FlexGet) and dumping them into %(series_name)s directories, I don't want to hash all the files each and every time a new one comes along.