-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Peter Pöml wrote: > Hi, > > just for fun, I was looking into generating Magnet links, because it became > possible to do this easily with MirrorBrain recently (read: some hours ago > ;-). I read up on magnet links a bit, and I think that the following might > hopefully make some sense: > > % curl -s > "http://go-oo.mirrorbrain.org/stable/linux-x86_64/3.2/ooobasis3.2-ar-impress-3.2.0-9483.x86_64.rpm?meta4" > | grep magnet > <metaurl > mediatype="magnet">magnet:?xl=991261&dn=ooobasis3.2-ar-impress-3.2.0-9483.x86_64.rpm&xt=urn:sha1:45cbf5e329583f4758680cee6ef940f2a8092379&xt=urn:bith:45cbf5e329583f4758680cee6ef940f2a8092379&xt=urn:md5:aa54080575e6d92019af6c776f314a6f</metaurl> > & should be & ? > > However, I have no experience with Magnet links, and I might do something > wrong. > > Is mediatype="magnet" sane? (It's not registered in any way, I think, but I > might overlook something). Ant just pointed out in #mirrorbrain on Freenode > that mediatype="torrent" should fit better, since they contain the same > information as (linked) torrents contain. This makes more sense to me as well > now. > I think mediatype="torrent" will fit only when the magnet is urn:btih. (Actually aria2 secretly supports this behavior) For more general case, other than btih, then I think mediatype="magnet" is a good candidate. If client is magnet capable, then it can parse magnet and detect its xt it supports. > Thinking about the Magnet link regardless of it being in a Metalink or not: > > Does it make sense to have both xt=urn:sha1 and xt=urn:bith, although both > contain the same sha1 hash? > I think it is OK, because client will process only one(or two?)xt which it supports. > I'd like to offer magnet links when ".magnet" is appended to an URL; is there > experience if it is possible to redirect to magnet URLs? I.e., the server > would reply with a 302 Found and "Location: magnet:?xt=urn:sha1:..." header. > I have no experience this, but it is interesting. magnet is URI so it is completely legal. Best regards, Tatsuhiro Tsujikawa > Is there any other cool or useful functionality that could be included? > > Thanks, > Peter > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkuaUYEACgkQfoQD1dZzw2bONQCeKLiQsSyHVZV9UiBDUE8Vqg0w wSYAnjCbHF7irs3vLLOqJGT8J0oj6la/ =QFPU -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Metalink Discussion" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/metalink-discussion?hl=en.
