Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions libtransmission/torrent-metainfo.cc
Expand Up @@ -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) || //
Expand All @@ -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) || //
Expand Down Expand Up @@ -578,6 +580,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
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;
Expand Down Expand Up @@ -621,6 +624,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
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;
Expand Down