aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Magnet not work.  (Read 17052 times)

ivan386

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Magnet not work.
« 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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Magnet not work.
« Reply #1 on: July 09, 2008, 07:05:06 PM »

It works here. Operating system? aMule version?
Logged
concordia cum veritate

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Magnet not work.
« Reply #2 on: July 09, 2008, 07:31:03 PM »

I foresee MacOSX.
Logged

ivan386

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: Magnet not work.
« Reply #3 on: July 09, 2008, 08:38:31 PM »

It works here. Operating system? aMule version?

Windows XP pro SP 2,  aMule-2.2.1
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Magnet not work.
« Reply #4 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 ?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Magnet not work.
« Reply #5 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.
« Last Edit: July 13, 2008, 03:41:56 PM by GonoszTopi »
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Magnet not work.
« Reply #6 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.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Magnet not work.
« Reply #7 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.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Magnet not work.
« Reply #8 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.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Magnet not work.
« Reply #9 on: July 13, 2008, 10:15:56 PM »

Files are locked anyway on SVN, so discuss between yourselves till they're unlocked.
Logged

ivan386

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: Magnet not work.
« Reply #10 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
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Magnet not work.
« Reply #11 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.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

ivan386

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: Magnet not work.
« Reply #12 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?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Magnet not work.
« Reply #13 on: May 29, 2009, 09:09:09 PM »

magnets work in aMule. At least in the SVN version.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Magnet not work.
« Reply #14 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.
Logged
concordia cum veritate
Pages: [1] 2