Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson authored Nov 24, 2024
1 parent 88dc724 commit ef8ca3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,9 @@ func handleTorznabCrossSearch(w http.ResponseWriter, r *http.Request) {
func CacheTitle(title string) *rls.Release {
r, ok := titlemap.Get(title)
if !ok {
r = rls.ParseString(title)
titlemap.Set(title, r, ttlcache.DefaultTTL)
local := rls.ParseString(title)
titlemap.Set(title, &local, ttlcache.DefaultTTL)
r, _ = titlemap.Get(title)
}

return r
Expand Down

0 comments on commit ef8ca3e

Please sign in to comment.