fix missing format argument and wrong struct tag

This commit is contained in:
tocariimaa 2024-12-28 19:19:45 -03:00
parent 39234132d7
commit ddce60a558

View file

@ -30,7 +30,7 @@ type UgoiraManifestBodyDesc struct {
} }
type UgoiraManifest struct { type UgoiraManifest struct {
Error bool `json: "error"` Error bool `json:"error"`
Message string `json:"message"` Message string `json:"message"`
Body UgoiraManifestBodyDesc `json:"body"` Body UgoiraManifestBodyDesc `json:"body"`
} }
@ -120,7 +120,7 @@ func getUgoira(postId PostId, flags CliFlags) {
if len(flags.manifestFileName) > 0 { if len(flags.manifestFileName) > 0 {
ugoiraManifestFileName = flags.manifestFileName ugoiraManifestFileName = flags.manifestFileName
} else { } else {
ugoiraManifestFileName = fmt.Sprintf("./%d_ugoira.json") ugoiraManifestFileName = fmt.Sprintf("./%d_ugoira.json", postId)
} }
say(flags.verbose, "Dumping manifest (to: %s)", ugoiraManifestFileName) say(flags.verbose, "Dumping manifest (to: %s)", ugoiraManifestFileName)