summaryrefslogtreecommitdiff
path: root/doc/bugs/addurl_magnet_could_not_download_torrent_file.mdwn
blob: f00a63a7a432f0884d7c91115a918e1f39fe2417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
### Please describe the problem.

Every time I try to `addurl` with `magnet:` I get this error message:

	could not download torrent file

### What steps will reproduce the problem?

	git-annex addurl "magnet:?xt=urn:btih:b548b3b8efce813d71c9355832b4382680b8abf9"

### What version of git-annex are you using? On what operating system?

* git-annex 5.20150409
* ubuntu 14.04 x64

### Please provide any additional information below.

[[!format sh """

git-annex addurl magnet:?xt=urn:btih:b548b3b8efce813d71c9355832b4382680b8abf9
(downloading torrent file...) 

04/13 17:16:15 [NOTICE] IPv4 DHT: listening on UDP port 6930

04/13 17:16:15 [NOTICE] IPv4 BitTorrent: listening on TCP port 6890

04/13 17:16:15 [NOTICE] IPv6 BitTorrent: listening on TCP port 6890
[#3e3bb9 74KiB/74KiB(100%) CN:13 SD:1]                                         
04/13 17:16:33 [NOTICE] Download complete: [METADATA]b548b3b8efce813d71c9355832b4382680b8abf9

04/13 17:16:33 [NOTICE] Saved metadata as ../.git/annex/misctmp/URL--magnet&c,63xt,61urn&cbtih&cb548b3b8efce813d71c9355832b4382680b8abf9/meta/b548b3b8efce813d71c9355832b4382680b8abf9.torrent.
	                                                                       
Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
3e3bb9|OK  |       0B/s|[MEMORY][METADATA]b548b3b8efce813d71c9355832b4382680b8abf9

Status Legend:
(OK):download completed.
addurl magnet:?xt=urn:btih:b548b3b8efce813d71c9355832b4382680b8abf9 
  could not download torrent file
failed
git-annex: addurl: 1 failed

"""]]

> Looking at the code, it was looking for a file prefixed by ".torrent",
> but of course that should be suffixed instead. So, [[fixed|done]]
> --[[Joey]]