aMule Forum

English => en_Bugs => Topic started by: ivan386 on July 09, 2008, 06:08:32 PM

Title: Magnet not work.
Post by: ivan386 on July 09, 2008, 06:08:32 PM
magnet:?xt=urn:ed2k:A0732496D16C511FB1C6130E3638C253&xl=8397622&dn=aMule-2.2.1-installer.exe&xt=urn:bitprint:MVC4QPUL2WMZT6Q3WUHAEHQNW5YQ4WCJ.242XXWZJUFGKVLDYKLJJ2HVJD42DIU4XBUFHSIY&xt=urn:aich:vbur5cgg4a6nrdh5f5ubqhy27ngjabn2

Error: DownloadQueue(1317): Unknown link protocol: ubqhy27ngjabn2
Title: Re: Magnet not work.
Post by: GonoszTopi on July 09, 2008, 07:05:06 PM
It works here. Operating system? aMule version?
Title: Re: Magnet not work.
Post by: Kry on July 09, 2008, 07:31:03 PM
I foresee MacOSX.
Title: Re: Magnet not work.
Post by: ivan386 on July 09, 2008, 08:38:31 PM
It works here. Operating system? aMule version?

Windows XP pro SP 2,  aMule-2.2.1
Title: Re: Magnet not work.
Post by: Stu Redman on July 12, 2008, 11:36:00 PM
That's a problem with the ed2k link entry control.
The link works fine if I size the window to full width on my widescreen, but fails if the link doesn't fit in and gets wrapped.
Can the wrapping of the control be turned off ?
Title: Re: Magnet not work.
Post by: GonoszTopi on July 13, 2008, 03:40:01 PM
It is a multi-line text-control, where you can list multiple links each on a new line. I bet that if the text doesn't fit into the control, it wraps the text and starts a new line. We could probaly resolve this by changing the control to single-line and allow adding only one link at once.

Edit: Test needed to prove it.
Title: Re: Magnet not work.
Post by: Stu Redman on July 13, 2008, 06:56:35 PM
Fixed it.
Control is still multi line, but I enabled horizontal (um - is that English?) scrolling, and now the links don't get wrapped anymore. ivan386's link works now on any window size.
Title: Re: Magnet not work.
Post by: Kry on July 13, 2008, 07:19:35 PM
Yeah, with the only downfall that now once the scrollbars are shown you can't see the text field anymore.
Title: Re: Magnet not work.
Post by: Stu Redman on July 13, 2008, 10:08:15 PM
Damn, you are right.  :o There is no such scroll bar in wxMSW though, that's why I considered the patch fine.
So what now ? Break long links or make them unreadable ? I would keep it as it is now - you usually paste the links and don't type them.
Title: Re: Magnet not work.
Post by: Kry on July 13, 2008, 10:15:56 PM
Files are locked anyway on SVN, so discuss between yourselves till they're unlocked.
Title: Re: Magnet not work.
Post by: ivan386 on September 13, 2008, 12:37:51 AM
Problem stil exist.

magnet:?xl=321270&dn=MagMaker%20%2808.09.2008%29.7z&xt=urn:bitprint:2WD2CSPHCXXNU6TKG4H37RBCQ6UXP7VW.KJGKNP4I3H424U7VT7R7EMOLVX56E3FJ6EZQ7LQ&xt=urn:ed2k:85CAB1856D797112F83FA4B11397DE51&xs=http%3A//cache.freebase.be/2WD2CSPHCXXNU6TKG4H37RBCQ6UXP7VW&xs=dchub://smarthub.spb.ru

Windows XP pro SP 2,  aMule-2.2.2
Title: Re: Magnet not work.
Post by: Stu Redman on September 13, 2008, 03:01:17 PM
The change wasn't backported to 2.2.2 . It's fixed on the SVN version only.
Title: Re: Magnet not work.
Post by: ivan386 on May 29, 2009, 08:34:51 PM
Now magnets may be used for: Direct Connect, Gnutella, G2, ed2k, BitTorrent, HTTP, FTP

For ED2K magnet have 5 fields.
xl=[file size in bytes]
dn=[file name uri encoded (%20 - space)]
xt=urn:ed2k:[ed2k hash (Hex)]
xt=urn:aich:[aich hash (Base32)]
xs=[ed2kftp source address uri encoded]

What now about magnets in AMule?
Title: Re: Magnet not work.
Post by: Stu Redman on May 29, 2009, 09:09:09 PM
magnets work in aMule. At least in the SVN version.
Title: Re: Magnet not work.
Post by: GonoszTopi on May 30, 2009, 09:05:32 PM
Now magnets may be used for: Direct Connect, Gnutella, G2, ed2k, BitTorrent, HTTP, FTP

For ED2K magnet have 5 fields.
xl=[file size in bytes]
dn=[file name uri encoded (%20 - space)]
xt=urn:ed2k:[ed2k hash (Hex)]
xt=urn:aich:[aich hash (Base32)]
xs=[ed2kftp source address uri encoded]

What now about magnets in AMule?

1) Some URIs tend to use xt=urn:ed2khash: instead of xt=urn:ed2k:
2) aMule magnet parser doesn't make use of aich type urns, nor ed2kftp addresses.

A Magnet link to work in aMule must contain the xl=<length> field and one of xt=urn:ed2k:<ed2k-hash> or xt=urn:ed2khash:<ed2k-hash> fields. A dn=<file%20name> field is used if present, all other fields are ignored.
Title: Re: Magnet not work.
Post by: ivan386 on May 31, 2009, 11:03:02 AM
It's time to add aich hash read from magnet.

http://en.wikipedia.org/wiki/Magnet_URI_scheme

AMule create magnets?
Shareaza create magnets with ed2khash:
MagMaker create magnets with ed2k: and aich:
Title: Re: Magnet not work.
Post by: GonoszTopi on May 31, 2009, 12:25:27 PM
AMule create magnets?
Yes. Right-click on the file, select 'Copy Magnet link to clipboard'.

It's time to add aich hash read from magnet.
Seems to be, yes.
Title: Re: Magnet not work.
Post by: Stu Redman on May 31, 2009, 02:57:08 PM
It's time to add aich hash read from magnet.
Is that used anywhere? Does eMule have it? Are there link sites with AICH hashes?

Yes. Right-click on the file, select 'Copy Magnet link to clipboard'.
Do we really need both urn:ed2k and urn:ed2khash ?
Title: Re: Magnet not work.
Post by: ivan386 on May 31, 2009, 04:46:04 PM
It's time to add aich hash read from magnet.
Is that used anywhere? Does eMule have it? Are there link sites with AICH hashes?

Yes, Yes, Yes
Title: Re: Magnet not work.
Post by: GonoszTopi on May 31, 2009, 05:26:58 PM
Do we really need both urn:ed2k and urn:ed2khash ?
It does not hurt including both in the link, and there are programs out there which understand only one of them.
Title: Re: Magnet not work.
Post by: ivan386 on May 31, 2009, 05:37:14 PM
Shareaza know both of them. What others?
Title: Re: Magnet not work.
Post by: Stu Redman on May 31, 2009, 08:15:45 PM
Yes, Yes, Yes
Very helpful.
Title: Re: Magnet not work.
Post by: Kry on May 31, 2009, 11:42:46 PM
eMule reads magnets?
Title: Re: Magnet not work.
Post by: ivan386 on June 01, 2009, 10:29:55 AM
No. He get aich from ed2k-link |h=ABC..|
Title: Re: Magnet not work.
Post by: Stu Redman on June 01, 2009, 12:23:45 PM
I'm still waiting for proof that Magnet links with AICH exist in the wild (and I'm not counting a little tool ivan386 has written (http://www.pantheraproject.net/forum/plugins-scripts-tools/8954-magnet-maker.html) of which I don't know if anybody has ever used it). The Wikipedia entry is very nebulous (and looks like ivan386 has created it himself).
I have not even seen such a link.
Yes, Yes, Yes
No.
I'm not convinced.
Title: Re: Magnet not work.
Post by: ivan386 on June 01, 2009, 01:53:43 PM
If this link not exist. Than we must create it!

http://www.google.ru/search?q=xt+urn+aich

Most of  technical part of magnet description on Ru.Wiki is my.

http://ru.wikipedia.org/w/index.php?title=Magnet-%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B0&action=history