URL to files

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
Wisp
Posts: 218
Joined: 2003-04-01 10:58

URL to files

Post by Wisp » 2004-12-15 17:19

I'd like to have a possibility to make a link to a file, the same way bittorent/edonkey sites work. I know you already can link to hubs or users, but as far as I know it isn't possible to link to file

The URL should be very simple, I would suggest the following

dcfile://filename|TTH

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-12-15 17:29

Aren't the magnet links sufficient?

<a href="magnet:?xt=urn:tree:tiger:NAIGBQX55G4AKMP7FXOVCU4QHEMRMV2JVRINTOA&dn=DCPlusPlus-0.668.exe">magnet:?xt=urn:tree:tiger:NAIGBQX55G4AKMP7FXOVCU4QHEMRMV2JVRINTOA&dn=DCPlusPlus-0.668.exe</a>
The world is coming to an end. Please log off.

DC++ Guide | Words

Wisp
Posts: 218
Joined: 2003-04-01 10:58

Post by Wisp » 2004-12-16 09:36

TheParanoidOne wrote:Aren't the magnet links sufficient?

Hmm I didn't knew that, but it works quite well, I think it would be better to just add the file to the download queue instead of having to search

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-16 09:49

I hope I'm not hijacking threads here now but..........I don't seem to get magnet-links to work in my brand, shiny new Firefox browser, anyone with a tip?
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2004-12-16 09:57

Is magnet.exe installed?

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-16 10:09

Yes, it works fine in IE but not in Firefox
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2004-12-16 10:16

What happens when you click on a magnet link?

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-16 10:18

A sign saying "You have no applications that currently handles this magnet link"
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

Wisp
Posts: 218
Joined: 2003-04-01 10:58

Post by Wisp » 2004-12-16 11:01

Guitarm wrote:A sign saying "You have no applications that currently handles this magnet link"
I just tried it, and in my case I can select an application to launch this type of protocol.. now it works fine with firefox

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-16 11:07

Hmm...I'm I missing some extension, or?
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-12-16 11:36

Wisp wrote:Hmm I didn't knew that, but it works quite well, I think it would be better to just add the file to the download queue instead of having to search

Yes, it would be. Or to give the user a choice. But the DC++ queue relies on having a file size, so DC++ only searches for the file. The MAGNET-URI specification has no argument for size. Instead of hacking one in (as they did in Reverse Connect), DC++'s queue will eventually be changed to discover (or not need) the file size, and users will be given a choice between queuing the file and searching. (That's why the dialog is so big, if you noticed.)

Wisp
Posts: 218
Joined: 2003-04-01 10:58

Post by Wisp » 2004-12-16 19:50

GargoyleMT wrote:Yes, it would be. Or to give the user a choice. But the DC++ queue relies on having a file size, so DC++ only searches for the file. The MAGNET-URI specification has no argument for size. Instead of hacking one in (as they did in Reverse Connect), DC++'s queue will eventually be changed to discover (or not need) the file size, and users will be given a choice between queuing the file and searching. (That's why the dialog is so big, if you noticed.)
Since we use TTH to track down files, the filesize isn't important anymore, so why is it still needed? Isn't it possible to use the word 'unknown' as filesize until the filesize is known?

Wisp
Posts: 218
Joined: 2003-04-01 10:58

Post by Wisp » 2004-12-16 19:51

Guitarm wrote:Hmm...I'm I missing some extension, or?
dunno, i haven't installed any add-ons for firefox, rarely use it anyway

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-12-17 01:39

Guitarm wrote:Hmm...I'm I missing some extension, or?

If the magnet handler is correctly registered with Windows, you should get an "External Protocol Link" message from Firefox asking for confirmation to lauch an external application to handle the link.

If it hasn't been registered correctly, you will receive a message that the link type is not a registered protocol.

Try clicking on the link given by Wisp and the one given by me, and see if the results are different.
The world is coming to an end. Please log off.

DC++ Guide | Words

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-17 05:36

Yes, obviously Firefox can handle dchub:// links now but not the magnet-links. I do belive it has something to do with the registration of magnet-links. But what can I do to register it other than clicking on magnet.exe in DC++ directory?
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-12-17 11:04

The magnet uri registration should be done automatically by DC++. You shouldn't have to do anything yourself.

Do you have any data in the following registry key?:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\magnet
The world is coming to an end. Please log off.

DC++ Guide | Words

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-17 11:10

TheParanoidOne wrote:The magnet uri registration should be done automatically by DC++. You shouldn't have to do anything yourself.

Do you have any data in the following registry key?:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\magnet
Yes, I have it and it looks ok. the reference to magnet.exe is right and under command it says: "C:\Program\DC++\magnet.exe" /url "%L"

Hmmm....I just noticed that it doesn't work in IE anymore either. I was messing with services the other day and I put some services to manual and made some inactive. Could this have something to do with this?
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-12-17 11:28

Guitarm wrote:Yes, I have it and it looks ok. the reference to magnet.exe is right and under command it says: "C:\Program\DC++\magnet.exe" /url "%L"

That's interesting, because I have:

"<full path here>\DC++\magnet.exe" %1

Guitarm wrote:Hmmm....I just noticed that it doesn't work in IE anymore either. I was messing with services the other day and I put some services to manual and made some inactive. Could this have something to do with this?

I doubt it.

I suggest deleting the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\magnet and HKEY_LOCAL_MACHINE\SOFTWARE\Magnet and letting DC++ recreate them.
The world is coming to an end. Please log off.

DC++ Guide | Words

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-12-17 11:31

Oh...ok, I'll delete them and try. And you mean I don't have to do anything to get a new one back in there?, is that handled automagically in the code you mean?.
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-12-17 13:51

Wisp wrote:Since we use TTH to track down files, the filesize isn't important anymore, so why is it still needed? Isn't it possible to use the word 'unknown' as filesize until the filesize is known?

That's what I said, isn't it?
GargoyleMT wrote: DC++'s queue will eventually be changed to discover (or not need) the file size,

Stacker
Posts: 23
Joined: 2004-04-30 00:15
Contact:

Post by Stacker » 2004-12-22 22:56

I have been a user of DC++ for about two years now and recently went from the core client to LDC++ (BTW is a great Multisource client).

I have been closely monitoring the Magnet-URI since the conception of integrating it.
It works great in my Firefox and with my client. With LDC you get the option to search for the file, or add it directly to the download queue.

My question....for a long time I have considered going with BT, but have always heard that seeding takes alot of resources. My files are fairly rare, so I would be seeding most of them. I don't know if seeding 400GB is possible with BT, plus I like the community like settings of DC.

What I want is magnet links on my site, but I do not have the time to click each individual file and copy /paste the link. Is there any software that can gather the magnet for multiple files, for example folder that has an entire album inside?

If not does anyone have any suggestion, as to how I can get the magnet's in a bulk sort of manner?

Lundis
Posts: 53
Joined: 2004-06-30 11:47

Post by Lundis » 2004-12-23 08:57

I have a little suggestion, put up yor files.xml.bz2 file. DC++ users can open it and look through your awesome share and try to find users with those files. You can also post the hubs you hang out in so they can find you.

And no, you can't share 400 GB with bittorrent, it doesn't work that way.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-12-27 11:52

Stacker wrote:What I want is magnet links on my site, but I do not have the time to click each individual file and copy /paste the link. Is there any software that can gather the magnet for multiple files, for example folder that has an entire album inside?

What you're referring to is generally termed a 'collection.' There's no standard for a collection of MAGNET links - you can take a look at the MAGNET-URI list, occasionally MAGMA comes up as a container format for collections.

Once there's a usable standard, DC++ will implement it.

Locked