You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user_guide.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,33 @@ You can add a PNG image with:
24
24
25
25
The image will be proxied by the backend. This means that the image will be downloaded by the backend and served by the backend itself. The backend will cache the image but you have to make sure that the image is available at the URL you provided.
26
26
27
+
### Canonical Infohash Group
28
+
29
+
We only support standard fields in the torrent info dictionary.
30
+
31
+
```rust
32
+
pubstructTorrentInfoDictionary {
33
+
pubname:String,
34
+
pubpieces:Option<ByteBuf>,
35
+
pubpiece_length:i64,
36
+
pubmd5sum:Option<String>,
37
+
publength:Option<i64>,
38
+
pubfiles:Option<Vec<TorrentFile>>,
39
+
pubprivate:Option<u8>,
40
+
pubpath:Option<Vec<String>>,
41
+
pubroot_hash:Option<String>,
42
+
pubsource:Option<String>,
43
+
}
44
+
```
45
+
46
+
Check the data structure [TorrentInfoDictionary](https://github.com/torrust/torrust-index/blob/develop/src/models/torrent_file.rs) for an updated version of the supported fields.
47
+
48
+
We allow uploading torrents with other custom fields, however those extra fields are removed from the torrent `info` dictionary. That causes the infohash to change. We call the "Canonical Infohash" the resulting infohash after removing the non-standard fields from the `info` dictionary.
49
+
50
+
You can use the original infohash in URLs to navigate to the torrent details and you also have a list of original infohashes belonging to the same infohash group in the torrent details.
51
+
52
+
If you think there is an important field missing in the `info` dictionary, please open an issue.
53
+
27
54
## Categories
28
55
29
56
Torrents can have only one category. You have to assign a category to your torrent when you upload it.
0 commit comments