add more immich control options
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2026-02-01 21:24:24 +11:00
parent 3644001dbc
commit 806d701535
9 changed files with 355 additions and 30 deletions

View File

@@ -11,6 +11,7 @@ struct ImmichConfig {
std::string url = "";
std::string apiKey = "";
std::vector<std::string> albumIds;
std::vector<std::string> personIds;
std::string size = "fullsize";
std::string order = "desc";
int pageSize = 200;
@@ -40,6 +41,13 @@ struct ImmichConfig {
if (albumIds[i] != b.albumIds[i])
return false;
}
if (personIds.size() != b.personIds.size())
return false;
for (size_t i = 0; i < personIds.size(); ++i)
{
if (personIds[i] != b.personIds[i])
return false;
}
return true;
}
@@ -54,6 +62,7 @@ struct MqttConfig {
std::string host = "localhost";
int port = 1883;
std::string topic = "slide/control";
std::string immichTopic = "";
std::string clientId = "slide";
std::string username = "";
std::string password = "";
@@ -66,6 +75,7 @@ struct MqttConfig {
host == b.host &&
port == b.port &&
topic == b.topic &&
immichTopic == b.immichTopic &&
clientId == b.clientId &&
username == b.username &&
password == b.password &&