Magnet link: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:
==What are Magnet Links==
==What are Magnet Links==


Magnets are a type of [FAQ.P2PLinks URI] (Universal Resource Identifier). They are used to assemble useful information about a thing (most often a file or similar resource) in a clear, extensive format. Most often, they are used to provide information about a file in a way that allows p2p programs to download the file from a p2p network. Shareaza, Limewire, and other Gnutella programs can understand magnet links. Azureus also uses magnet links (in a way Shareaza yet cannot). Kazaa can also use magnet links (in a way Shareaza never will). Magnet is an open project. Its website is [http://magnet-uri.sourceforge.net/ http://magnet-uri.sourceforge.net/]. There is a Yahoo! discussion group: [http://groups.yahoo.com/group/magnet-uri/ Yahoo magnet group page].
Magnets are a type of [[FAQ.P2PLinks|URI]] (Universal Resource Identifier). They are used to assemble useful information about a thing (most often a file or similar resource) in a clear, extensive format. Most often, they are used to provide information about a file in a way that allows p2p programs to download the file from a p2p network. Shareaza, Limewire, and other Gnutella programs can understand magnet links. Azureus also uses magnet links (in a way Shareaza yet cannot). Kazaa can also use magnet links (in a way Shareaza never will). Magnet is an open project. Its website is [http://magnet-uri.sourceforge.net/ http://magnet-uri.sourceforge.net/]. There is a Yahoo! discussion group: [http://groups.yahoo.com/group/magnet-uri/ Yahoo magnet group page].


==Using Shareaza to create and export magnet links==
==Using Shareaza to create and export magnet links==




For each file in your library, there is a right-click option to copy its URI (see [Manual.Library Manual.Library]). This can be used to copy into the clipboard either a magnet for the file with the file's <nowiki>BitPrint</nowiki> (the SHA1 and TigerTree hash) and File name, or an ed2k link.  If you highlight multiple files in your library (by holding down &lt;Shift&gt; or &lt;Ctrl&gt; while selecting the file), there is an option to export more complex URIs to the clipboard, or to a file.
For each file in your library, there is a right-click option to copy its URI (see [[Manual.Library]]). This can be used to copy into the clipboard either a magnet for the file with the file's <nowiki>BitPrint</nowiki> (the SHA1 and TigerTree hash) and File name, or an ed2k link.  If you highlight multiple files in your library (by holding down &lt;Shift&gt; or &lt;Ctrl&gt; while selecting the file), there is an option to export more complex URIs to the clipboard, or to a file.


While a file is in the process of being downloaded, it is also possible to copy its URI, but it is not possible to export URIs for multiple files from the downloads windows, like one can from library window.
While a file is in the process of being downloaded, it is also possible to copy its URI, but it is not possible to export URIs for multiple files from the downloads windows, like one can from library window.
Line 16: Line 16:




Please refer to [Manual.Library Manual.Library] page for the process of exporting URI to a file or to the clipboard.
Please refer to [[Manual.Library]] page for the process of exporting URI to a file or to the clipboard.


==How to include Magnet Links on a WebPage==
==How to include Magnet Links on a WebPage==


From the Export URI feature, export the magnets in 'html format' to a file. Add any tags to magnet that you wish to include. The [Manual.Library Manual.Library wiki page] has some preformatted examples of tags you may wish to include.
From the Export URI feature, export the magnets in 'html format' to a file. Add any tags to magnet that you wish to include. The [[Manual.Library]] wiki page has some preformatted examples of tags you may wish to include.


for example:
for example:

Revision as of 23:18, 8 November 2009

For information regarding the technical details of magnet links, see Magnet URI scheme.

  Languages:

[[::Magnet link|English]] • [[::Magnet link/de|Deutsch]] • [[::Magnet link/es|Español]] • [[::Magnet link/fr|Français]] • [[::Magnet link/he|עברית]] • [[::Magnet link/it|Italiano]] • [[::Magnet link/nl|Nederlands]] • [[::Magnet link/pl|Polski]] • [[::Magnet link/pt|Português]] • [[::Magnet link/ru|Русский]] • [[::Magnet link/zh-hant|‪中文(繁體)]]

e

What are Magnet Links

Magnets are a type of URI (Universal Resource Identifier). They are used to assemble useful information about a thing (most often a file or similar resource) in a clear, extensive format. Most often, they are used to provide information about a file in a way that allows p2p programs to download the file from a p2p network. Shareaza, Limewire, and other Gnutella programs can understand magnet links. Azureus also uses magnet links (in a way Shareaza yet cannot). Kazaa can also use magnet links (in a way Shareaza never will). Magnet is an open project. Its website is http://magnet-uri.sourceforge.net/. There is a Yahoo! discussion group: Yahoo magnet group page.

Using Shareaza to create and export magnet links

For each file in your library, there is a right-click option to copy its URI (see Manual.Library). This can be used to copy into the clipboard either a magnet for the file with the file's BitPrint (the SHA1 and TigerTree hash) and File name, or an ed2k link. If you highlight multiple files in your library (by holding down <Shift> or <Ctrl> while selecting the file), there is an option to export more complex URIs to the clipboard, or to a file.

While a file is in the process of being downloaded, it is also possible to copy its URI, but it is not possible to export URIs for multiple files from the downloads windows, like one can from library window.

Using the export URI feature

Please refer to Manual.Library page for the process of exporting URI to a file or to the clipboard.

How to include Magnet Links on a WebPage

From the Export URI feature, export the magnets in 'html format' to a file. Add any tags to magnet that you wish to include. The Manual.Library wiki page has some preformatted examples of tags you may wish to include.

for example: enter in the export URI dialog box:

<a href="magnet:?xt=urn:sha1:[SHA1]&xt=urn:tree:tiger:[TIGER]&xl=[ByteSize]&xt=urn:ed2k:[ED2k]&dn=[NameURI]">
[Name]</a><br>

Save the output to a file, which will look like (the hashes having been altered for ease of viewing: {...} has been added for missing sections):

<a href="magnet:?xt=urn:sha1:HA{...}I3&xt=urn:tree:tiger:H7{...}6I&xl=397&xt=urn:ed2k:27{...}3f&dn=test.txt">
test.txt</a><br>

NOTE: be cautious of the use of '&' when including these files in html pages. The use of '&' unescaped (as a delimiter) is correct for URI encoding in this instance, but web pages are also HTML encoded, and so the ampersand, &, should technically be replaced with &. Most browsers or web page servers are not confused if you fail to do this step however.

You may want to include a little icon in your magnet link, before the 'clickable text', so that it looks pretty. There are some examples of icons you may wish to use for the links your webpage at the MagnetURI web page.

example:

<a href="magnet:?xt=urn:sha1:{...}&dn=somefile"><img src="RelativeOrAbsolutePathToMyMagnetIcon.gif" align=middle border="0" ALT="error">somefile.file</a>

How to include Magnet Links in the Shareaza forums

Magnet links can be included in posts on the shareaza forums using the [magnet]and[/magnet] tags. They use the format

[magnet=magnet:?xt=urn:bitprint:blahblahblah]yadayadayada[/magnet]

where blahblahblah is the bitprint of the file and yadayadayada is the text displayed as the link

What are some of the tags that can be seen in magnet links

For a list of tokens that can be used see the "Technical Details" section of the Magnet URI scheme page