Skip to content

Commit

Permalink
Add retry to PlexLibrarySection.search
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 1, 2025
1 parent f3a6f38 commit b1de18c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plextraktsync/plex/PlexLibrarySection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from plexapi.exceptions import NotFound

from plextraktsync.decorators.retry import retry
from plextraktsync.rich.RichMarkup import RichMarkup

if TYPE_CHECKING:
Expand Down Expand Up @@ -50,6 +51,7 @@ def find_by_title(self, name: str):
except NotFound:
return None

@retry
def search(self, **kwargs):
return self.section.search(**kwargs)

Expand Down

0 comments on commit b1de18c

Please sign in to comment.