added deviceID as an arg
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user