hacking a deluge plugin -- need help
Posted: Wed May 13, 2009 6:10 am
Hi There,
As part of a research project I have been developing a FUSE filesystem that exposes incomplete files as complete ones. The motivation behind it is to point any download program to save files through it, say a movie, and then other programs, say a movie player, could open the file and start playing it even if it has not been fully downloaded. In order for this to work we need to communicate with the download client to tell it which parts of the file are being requested by the player. As a prove of concept we are using bittorrent, and came across your project, Deluge.
What I'm trying to figure out is the most natural place for the Deluge to communicate with our FS (through a shared file or other mechanism) and find out what bytes are being requested, and for the appropriate torrent, set the chunk priority to the highest, so that the chunck will be downloaded and playback (read in general) can continue. As I said, this is for a proof of concept, so a quick dirty hack would be sufficient. Is there any part in the Deluge source that this would be easiest to integrate? It has to be a continuous thing, that checks the file often.
Does anyone have a good idea of the deluge architecture and where this fix might fit?
Thanks a lot
As part of a research project I have been developing a FUSE filesystem that exposes incomplete files as complete ones. The motivation behind it is to point any download program to save files through it, say a movie, and then other programs, say a movie player, could open the file and start playing it even if it has not been fully downloaded. In order for this to work we need to communicate with the download client to tell it which parts of the file are being requested by the player. As a prove of concept we are using bittorrent, and came across your project, Deluge.
What I'm trying to figure out is the most natural place for the Deluge to communicate with our FS (through a shared file or other mechanism) and find out what bytes are being requested, and for the appropriate torrent, set the chunk priority to the highest, so that the chunck will be downloaded and playback (read in general) can continue. As I said, this is for a proof of concept, so a quick dirty hack would be sufficient. Is there any part in the Deluge source that this would be easiest to integrate? It has to be a continuous thing, that checks the file often.
Does anyone have a good idea of the deluge architecture and where this fix might fit?
Thanks a lot