MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
bit torrent url patch

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Development
View previous topic :: View next topic  
Author Message
mbh
neophyte


Joined: 17 Dec 2004
Posts: 21
Location: USA

PostPosted: Sat Jan 22, 2005 9:10 pm    Post subject: bit torrent url patch Reply with quote

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
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3983
Location: Germany

PostPosted: Sun Jan 23, 2005 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
mbh
neophyte


Joined: 17 Dec 2004
Posts: 21
Location: USA

PostPosted: Mon Jan 24, 2005 2:55 am    Post subject: replacement Reply with quote

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
View user's profile Send private message
White_FrosT
skilled


Joined: 02 Sep 2003
Posts: 422

PostPosted: Sat Feb 05, 2005 9:45 pm    Post subject: Reply with quote

I still have some problems with starting torrents from an http location. wgetting the file and starting locally works fine.
Example torrent:
Quote:
dllink http://linux.mybookmarkmanager.com/torrents/FreeSBIE-1.1-i386.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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
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


Sourceforge.net Logo