Skip to content

Commit

Permalink
fix: use different pointers for different library sections
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Mar 11, 2022
1 parent c011d00 commit 7c6e0ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handler/plex.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ func (c *PlexClient) fetchLibrarySections() {
}

c.sections = make(map[string]*plex.Directory, len(sections.MediaContainer.Directory))
for _, section := range sections.MediaContainer.Directory {
for _, s := range sections.MediaContainer.Directory {
section := s
c.sections[section.Key] = &section
}
}
Expand Down

0 comments on commit 7c6e0ca

Please sign in to comment.