1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

Add Advanced Download Manager & LibreTorrent client names (#3750)

This commit is contained in:
L2501 2022-09-02 20:37:25 +03:00 committed by GitHub
parent 5782847601
commit 22669dda5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -599,7 +599,8 @@ struct Client
format_func formatter; format_func formatter;
}; };
auto constexpr Clients = std::array<Client, 127>{ { auto constexpr Clients = std::array<Client, 129>{ {
{ "-AD", "Advanced Download Manager", three_digit_formatter },
{ "-AG", "Ares", four_digit_formatter }, { "-AG", "Ares", four_digit_formatter },
{ "-AR", "Arctic", four_digit_formatter }, { "-AR", "Arctic", four_digit_formatter },
{ "-AT", "Artemis", four_digit_formatter }, { "-AT", "Artemis", four_digit_formatter },
@ -650,6 +651,7 @@ auto constexpr Clients = std::array<Client, 127>{ {
{ "-LP", "Lphant", two_major_two_minor_formatter }, { "-LP", "Lphant", two_major_two_minor_formatter },
{ "-LT", "libtorrent (Rasterbar)", three_digit_formatter }, { "-LT", "libtorrent (Rasterbar)", three_digit_formatter },
{ "-LW", "LimeWire", no_version_formatter }, { "-LW", "LimeWire", no_version_formatter },
{ "-Lr", "LibreTorrent", three_digit_formatter },
{ "-MG", "MediaGet", mediaget_formatter }, { "-MG", "MediaGet", mediaget_formatter },
{ "-MK", "Meerkat", four_digit_formatter }, { "-MK", "Meerkat", four_digit_formatter },
{ "-ML", "MLDonkey", mldonkey_formatter }, { "-ML", "MLDonkey", mldonkey_formatter },

View file

@ -24,8 +24,9 @@ TEST(Client, clientForId)
std::string_view expected_client; std::string_view expected_client;
}; };
auto constexpr Tests = std::array<LocalTest, 38>{ auto constexpr Tests = std::array<LocalTest, 40>{
{ { "-AZ8421-"sv, "Azureus / Vuze 8.4.2.1"sv }, { { "-ADB560-"sv, "Advanced Download Manager 11.5.6"sv },
{ "-AZ8421-"sv, "Azureus / Vuze 8.4.2.1"sv },
{ "-BC0241-"sv, "BitComet 2.41"sv }, // two major, two minor { "-BC0241-"sv, "BitComet 2.41"sv }, // two major, two minor
{ "-BI2300-"sv, "BiglyBT 2.3.0.0"sv }, { "-BI2300-"sv, "BiglyBT 2.3.0.0"sv },
{ "-BL246326"sv, "BitLord 2.4.6-326"sv }, // Style used after BitLord 0.59 { "-BL246326"sv, "BitLord 2.4.6-326"sv }, // Style used after BitLord 0.59
@ -42,6 +43,7 @@ TEST(Client, clientForId)
{ "-IIO\x10\x2D\x04-"sv, "-IIO%10-%04-"sv }, { "-IIO\x10\x2D\x04-"sv, "-IIO%10-%04-"sv },
{ "-I\05O\x08\x03\x01-"sv, "-I%05O%08%03%01-"sv }, { "-I\05O\x08\x03\x01-"sv, "-I%05O%08%03%01-"sv },
{ "-KT33D1-"sv, "KTorrent 3.3 Dev 1"sv }, { "-KT33D1-"sv, "KTorrent 3.3 Dev 1"sv },
{ "-Lr10X0-"sv, "LibreTorrent 1.0.33"sv },
{ "-MR1100-"sv, "Miro 1.1.0.0"sv }, { "-MR1100-"sv, "Miro 1.1.0.0"sv },
{ "-PI0091-"sv, "PicoTorrent 0.09.1"sv }, { "-PI0091-"sv, "PicoTorrent 0.09.1"sv },
{ "-PI0120-"sv, "PicoTorrent 0.12.0"sv }, { "-PI0120-"sv, "PicoTorrent 0.12.0"sv },