Skip to content

Commit

Permalink
Make **kwargs for LibrarySection.get() url quote safe
Browse files Browse the repository at this point in the history
  • Loading branch information
Joselito H. Tagarao committed Aug 14, 2020
1 parent 1b0ae5f commit 84c84e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plexapi/library.py
Expand Up @@ -441,7 +441,7 @@ def get(self, title, **kwargs):
"""
key = '/library/sections/%s/all?title=%s' % (self.key, quote(title, safe=''))
for keyword, value in kwargs.items():
key = key + '&%s=%s' % (keyword, value)
key = key + '&%s=%s' % (keyword, quote(value, safe=''))
return self.fetchItem(key, title__iexact=title)

def all(self, sort=None, **kwargs):
Expand Down

0 comments on commit 84c84e5

Please sign in to comment.