@@ -37,7 +37,7 @@ http://upgraderr:6940/api/upgrade
37
37
"host" : " http://qbittorrent:8080" ,
38
38
"user" : " username" ,
39
39
"password" : " password" ,
40
- "name" : " {{ .TorrentName | js }} "
40
+ "name" : {{ toRawJson .TorrentName }}
41
41
}
42
42
```
43
43
@@ -61,7 +61,7 @@ http://upgraderr:6940/api/upgrade
61
61
"host" : " http://qbittorrent:8080" ,
62
62
"user" : " username" ,
63
63
"password" : " password" ,
64
- "name" : " {{ .TorrentName | js }} "
64
+ "name" : {{ toRawJson .TorrentName }}
65
65
}
66
66
```
67
67
@@ -80,7 +80,7 @@ http://upgraderr:6940/api/cross
80
80
"host" : " http://qbittorrent:8080" ,
81
81
"user" : " username" ,
82
82
"password" : " password" ,
83
- "name" : " {{ .TorrentName | js }} " ,
83
+ "name" : {{ toRawJson .TorrentName }} ,
84
84
"hash" : " {{ .TorrentHash }}" ,
85
85
"torrent" : " {{ .TorrentDataRawBytes | js }}"
86
86
}
@@ -90,4 +90,4 @@ http://upgraderr:6940/api/cross
90
90
91
91
This is a toolchest, other functionality can be achieved by using other return codes, and attaching other tools to actions taken by the application.
92
92
93
- More Information: [ github.com/kylesanderson/upgraderr] ( https://github.com/kylesanderson/upgraderr )
93
+ More Information: [ github.com/kylesanderson/upgraderr] ( https://github.com/kylesanderson/upgraderr )
0 commit comments