feat: complete media discovery

This commit is contained in:
Rogee
2024-12-06 14:19:57 +08:00
parent 2b551f1b69
commit 43bde1e62a
2 changed files with 4 additions and 4 deletions

View File

@@ -70,9 +70,9 @@ func (s Store) Hashes() []string {
}
// Exists
func (s Store) Exists(name string) bool {
func (s Store) HashExists(hash string) bool {
for _, m := range s {
if m.Name == name {
if m.Hash == hash {
return true
}
}