mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Update default language for library add (#1416)
* Update default language for library add * Add explicit photo library language to bootstrap server
This commit is contained in:
parent
5e6db51f53
commit
7b317ef822
2 changed files with 3 additions and 2 deletions
|
@ -226,7 +226,7 @@ class Library(PlexObject):
|
|||
section.deleteMediaPreviews()
|
||||
return self
|
||||
|
||||
def add(self, name='', type='', agent='', scanner='', location='', language='en', *args, **kwargs):
|
||||
def add(self, name='', type='', agent='', scanner='', location='', language='en-US', *args, **kwargs):
|
||||
""" Simplified add for the most common options.
|
||||
|
||||
Parameters:
|
||||
|
@ -234,7 +234,7 @@ class Library(PlexObject):
|
|||
agent (str): Example com.plexapp.agents.imdb
|
||||
type (str): movie, show, # check me
|
||||
location (str or list): /path/to/files, ["/path/to/files", "/path/to/morefiles"]
|
||||
language (str): Two letter language fx en
|
||||
language (str): Four letter language code (e.g. en-US)
|
||||
kwargs (dict): Advanced options should be passed as a dict. where the id is the key.
|
||||
|
||||
**Photo Preferences**
|
||||
|
|
|
@ -612,6 +612,7 @@ if __name__ == "__main__": # noqa: C901
|
|||
location="/data/Photos" if opts.no_docker is False else photos_path,
|
||||
agent="com.plexapp.agents.none",
|
||||
scanner="Plex Photo Scanner",
|
||||
language="en",
|
||||
expected_media_count=has_photos,
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue