mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 07:36:38 +08:00
fix(gost): ensure JSON floats are correctly converted in GetInt and remove accidental binary
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
gost
|
||||
gost_*
|
||||
gost-*
|
||||
*.sha256
|
||||
*.exe
|
||||
Binary file not shown.
@@ -60,6 +60,8 @@ func GetInt(md metadata.Metadata, keys ...string) (v int) {
|
||||
}
|
||||
case int:
|
||||
v = vv
|
||||
case float64:
|
||||
v = int(vv)
|
||||
case string:
|
||||
v, _ = strconv.Atoi(vv)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user