| View previous topic :: View next topic |
| Author |
Message |
mbh neophyte
Joined: 17 Dec 2004 Posts: 21 Location: USA
|
Posted: Sat Jan 22, 2005 9:10 pm Post subject: bit torrent url patch |
|
|
When you use dllink for a torrent file, mldonkey only recognizes it if the extension is .tor or .torrent. This is a pain because many tracker sites have dynamic conent and don't provide BT links with the .torrent extension. This patch fixes this by checking the validity of a BT file in the HTTP header instead of the filename. So, you can download torrent files which are named something like "download.php?id=234238".
However, I don't want to post this on savannah because it doesn't play nicely with the dllink mechanism. In fact, with this patch, dllink will give an error, although the file is actually added to the download list. This is because dllink is designed to only do shallow checking (filename and extension) and requesting an HTTP header takes a lot longer.
But it works. So, if you download BT stuff, feel free to use it.
http://csua.berkeley.edu/~mbh/bt_url.diff |
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3983 Location: Germany
|
Posted: Sun Jan 23, 2005 7:46 pm Post subject: |
|
|
FYI: This patch canīt be applied to CVS 2-5-28 because it uses code from 2-5-29. _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
mbh neophyte
Joined: 17 Dec 2004 Posts: 21 Location: USA
|
Posted: Mon Jan 24, 2005 2:55 am Post subject: replacement |
|
|
I uploaded a patch to savannah which replaces this one in a more efficient manner. It's also for 2.5.29, though. I should add that this makes savannah patches #3604 and #3606 obsolete, so perhaps you could remove them from savannah?
I'll try to have a 2.5.28 as soon as i can |
|
| Back to top |
|
 |
White_FrosT skilled
Joined: 02 Sep 2003 Posts: 422
|
Posted: Sat Feb 05, 2005 9:45 pm Post subject: |
|
|
I still have some problems with starting torrents from an http location. wgetting the file and starting locally works fine.
Example torrent:
Doesn't appear in the download list here. I found that torrents the need to be downloaded from a port other then 80 like: | Quote: | | http://www.server.com:8888/file.torrent | give a | Quote: | | Http_client: bad reply 400 |
Any quick thought about these errors? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © phpBB Group
|
|
|
|