]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Document preference for metainfo.FileInfo.PathUtf8
authorMatt Joiner <anacrolix@gmail.com>
Mon, 18 Mar 2024 05:09:01 +0000 (16:09 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 18 Mar 2024 05:16:23 +0000 (16:16 +1100)
metainfo/fileinfo.go

index 25c262529b5b94aa13ecd41075c7244ada081cd6..cb9c5be84900d86e0845962df36134df04ccf37d 100644 (file)
@@ -10,8 +10,10 @@ import (
 type FileInfo struct {
        // BEP3. With BEP 47 this can be optional, but we have no way to describe that without breaking
        // the API.
-       Length   int64    `bencode:"length"`
-       Path     []string `bencode:"path"` // BEP3
+       Length int64    `bencode:"length"`
+       Path   []string `bencode:"path"` // BEP3
+       // Unofficial extension by BiglyBT? https://github.com/BiglySoftware/BiglyBT/issues/1274. Might
+       // be a safer bet when available: https://github.com/anacrolix/torrent/pull/915.
        PathUtf8 []string `bencode:"path.utf-8,omitempty"`
 
        ExtendedFileAttrs