Torrent Web Seed Implementation

After you have edited the source code, post your patch here.
Forum rules
Home | Wiki | Rules

Torrent Web Seed Implementation

Postby ivan386 » 24 Dec 2014 01:04

Web Seed is web link to file or part of path for multifile torrent.

In magnet link: "&ws=http://..."
In torrent: "url-list"
Attachments
WebSeed.zip
(26.16 KiB) Downloaded 139 times
Last edited by ivan386 on 25 Dec 2014 04:42, edited 1 time in total.
data:application/exe,%B4%09%BA%0D%01%CD%21%B4%08%CD%21%CD%20Hello,World!$
ivan386
 
Posts: 260
Joined: 17 Jun 2009 14:08

Re: Torrent Web Seed Implementation

Postby raspopov » 24 Dec 2014 04:52

Magnets already has "as" (acceptable source).
User avatar
raspopov
Project Admin
 
Posts: 944
Joined: 13 Jun 2009 12:30
Location: Russian Federation

Re: Torrent Web Seed Implementation

Postby ivan386 » 24 Dec 2014 13:19

Tell it to uTorrent and Trasmission team. They use "ws=...". Not problem to add new one.

Magnet from uTorrent
Code: Select all
magnet:?xt=urn:btih:16253D9BEB0DF49FE30BACC62EA10BA63939F0F8&dn=ruwiki-20141114-pages-meta-current.xml.bz2&tr=...&ws=http%3a%2f%2fdumps.wikimedia.org%2fruwiki%2f20141114%2fruwiki-20141114-pages-meta-current.xml.bz2
data:application/exe,%B4%09%BA%0D%01%CD%21%B4%08%CD%21%CD%20Hello,World!$
ivan386
 
Posts: 260
Joined: 17 Jun 2009 14:08

Re: Torrent Web Seed Implementation

Postby raspopov » 24 Dec 2014 17:44

What is a problem to suggest them to follow a standard?
User avatar
raspopov
Project Admin
 
Posts: 944
Joined: 13 Jun 2009 12:30
Location: Russian Federation

Re: Torrent Web Seed Implementation

Postby ivan386 » 24 Dec 2014 19:05

For me easier to implement than suggest.

Maybe they use "ws=..." because it's not only path to single file. "ws=..." can contain path where files for multifile torrent.

Exaple:
Code: Select all
magnet:?xt=...&ws=http://dumps.wikimedia.org/ruwiki/


Client extend path by info from torrent file for each file in torrent.

Code: Select all
info{
 name: "20141114"
 files: {
  path: ["ruwiki-20141114-pages-meta-current.xml.bz2"]
 }
}


And make full path:
Code: Select all
http://dumps.wikimedia.org/ruwiki/20141114/ruwiki-20141114-pages-meta-current.xml.bz2


But i don't implement that part.
data:application/exe,%B4%09%BA%0D%01%CD%21%B4%08%CD%21%CD%20Hello,World!$
ivan386
 
Posts: 260
Joined: 17 Jun 2009 14:08

Re: Torrent Web Seed Implementation

Postby queuesclimber » 25 Dec 2014 02:43

Yup.
Attachments
webseed.jpg
User avatar
queuesclimber
 
Posts: 250
Joined: 29 Oct 2013 16:24

Re: Torrent Web Seed Implementation

Postby ivan386 » 25 Dec 2014 04:44

Fixed. Some trash was in file from old versions.
data:application/exe,%B4%09%BA%0D%01%CD%21%B4%08%CD%21%CD%20Hello,World!$
ivan386
 
Posts: 260
Joined: 17 Jun 2009 14:08

Re: Torrent Web Seed Implementation

Postby queuesclimber » 25 Dec 2014 17:57

Thanks for updateing.
So far, no crashes.
When it crashes, mostly in AlbumFolder.cpp: GetNextFilePos
User avatar
queuesclimber
 
Posts: 250
Joined: 29 Oct 2013 16:24

Re: Torrent Web Seed Implementation

Postby raspopov » 28 Dec 2014 17:44

Committed in r9524 but BTInfo.cpp changed to split a different extensions.
User avatar
raspopov
Project Admin
 
Posts: 944
Joined: 13 Jun 2009 12:30
Location: Russian Federation


Return to Code Submission

Who is online

Users browsing this forum: No registered users and 1 guest

cron