fix info and shrink m3u

This commit is contained in:
nikk gitanes
2020-11-05 01:40:04 +03:00
parent da3075faef
commit 157da95dc5
2 changed files with 7 additions and 1 deletions

View File

@@ -12,6 +12,11 @@ func AddInfo(hash, info string) error {
if err != nil {
return err
}
infoe := GetInfo(hash)
if infoe != "{}" {
return nil // already filled
}
hash = strings.ToUpper(hash)
return db.Update(func(tx *bolt.Tx) error {