mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-17 13:28:26 +00:00
Fixing how advanced settings params are set and adding a prefix & when appending advanced settings. Update parts append to use f-string
This commit is contained in:
parent
b7f2913fbc
commit
6229b98f3b
1 changed files with 2 additions and 1 deletions
|
@ -383,7 +383,8 @@ class Library(PlexObject):
|
|||
part = (f'/library/sections?name={quote_plus(name)}&type={type}&agent={agent}'
|
||||
f'&scanner={quote_plus(scanner)}&language={language}&{urlencode(locations, doseq=True)}')
|
||||
if kwargs:
|
||||
part += urlencode(kwargs)
|
||||
prefs_params = {f'prefs[{k}]': v for k, v in kwargs.items()}
|
||||
part += f'&{urlencode(prefs_params)}'
|
||||
return self._server.query(part, method=self._server._session.post)
|
||||
|
||||
def history(self, maxresults=None, mindate=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue