fix: silence torrent-metainfo warnings for cross_seed_entry, uid (#5365)

This commit is contained in:
Charles Kerr 2023-04-10 11:07:43 -05:00 committed by GitHub
parent 1c64bdd352
commit c76cb4db51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -408,6 +408,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
else if (
pathIs(ChecksumKey) || //
pathIs(ErrCallbackKey) || //
pathIs(InfoKey, CrossSeedEntryKey) || //
pathIs(InfoKey, Ed2kKey) || //
pathIs(InfoKey, EntropyKey) || //
pathIs(InfoKey, Md5sumKey) || //
@ -421,6 +422,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
pathIs(PublisherUrlKey) || //
pathIs(PublisherUrlUtf8Key) || //
pathIs(TitleKey) || //
pathIs(UidKey) || //
pathStartsWith(AzureusPrivatePropertiesKey) || //
pathStartsWith(AzureusPropertiesKey) || //
pathStartsWith(InfoKey, CollectionsKey) || //
@ -578,6 +580,7 @@ private:
static constexpr std::string_view CreatedByKey = "created by"sv;
static constexpr std::string_view CreatedByUtf8Key = "created by.utf-8"sv;
static constexpr std::string_view CreationDateKey = "creation date"sv;
static constexpr std::string_view CrossSeedEntryKey = "cross_seed_entry"sv;
static constexpr std::string_view DisplayNameKey = "display-name"sv;
static constexpr std::string_view DurationKey = "duration"sv;
static constexpr std::string_view Ed2kKey = "ed2k"sv;
@ -621,6 +624,7 @@ private:
static constexpr std::string_view Sha1Key = "sha1"sv;
static constexpr std::string_view SourceKey = "source"sv;
static constexpr std::string_view TitleKey = "title"sv;
static constexpr std::string_view UidKey = "uid"sv;
static constexpr std::string_view UniqueKey = "unique"sv;
static constexpr std::string_view UrlListKey = "url-list"sv;
static constexpr std::string_view VcodecKey = "vcodec"sv;