From fcca3c564367cf48b7606965e2249536be91da1f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 18 Mar 2024 16:09:01 +1100 Subject: [PATCH] Document preference for metainfo.FileInfo.PathUtf8 --- metainfo/fileinfo.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/metainfo/fileinfo.go b/metainfo/fileinfo.go index 25c262529b..cb9c5be849 100644 --- a/metainfo/fileinfo.go +++ b/metainfo/fileinfo.go @@ -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