hamedramzi / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
0 stars 0 forks source link

muli-file web seed failed when redirect to new http server with new filename #580

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.mult-file torrent with web seed
2.the http server redirects request to new server and files's name also change

What is the expected output? What do you see instead?
  Many cloud storage server redirect http request to the actually server and the file name also change. Even each file may exist different server.

What version of the product are you using? On what operating system?
qbittorrent 3.1.8  win8

Original issue reported on code.google.com by ipv6pla...@gmail.com on 12 Feb 2014 at 10:55

GoogleCodeExporter commented 9 years ago
This is a known limitation. web seeds currently only allow redirects of the 
entire directory, not individual files to different locations.

currently this is done by replacing the web seed entry in the torrent and 
retrying. i.e. the whole directory of files still needs to be intact for this 
to work. supporting redirects of individual files is a bit more complicated, 
the mapping of file index to new url would have to be remembered across 
connections and honored.

patches are welcome!

Original comment by arvid.no...@gmail.com on 13 Feb 2014 at 3:17