added deviceID as an arg

This commit is contained in:
2025-10-29 12:51:51 +01:00
parent dd01f3b3b6
commit d8a97c1257
2 changed files with 4 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ type Config struct {
BaseURL string
APIKey string
UserdataDir string
DeiveID string
}
func Run(config Config) {
@@ -35,7 +36,7 @@ func Run(config Config) {
for _, f := range files {
fmt.Printf(" %s\n", f)
res, err := uploadToImmich(f, appid, config.BaseURL, config.APIKey, "steam-screenshot-test")
res, err := uploadToImmich(f, appid, config.BaseURL, config.APIKey, config.DeiveID)
if err != nil {
fmt.Printf("Failed to upload to immich: %s", err)