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:
JonnyWong16 2024-05-18 12:16:18 -07:00 committed by GitHub
parent 5e6db51f53
commit 7b317ef822
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -226,7 +226,7 @@ class Library(PlexObject):
section.deleteMediaPreviews() section.deleteMediaPreviews()
return self 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. """ Simplified add for the most common options.
Parameters: Parameters:
@ -234,7 +234,7 @@ class Library(PlexObject):
agent (str): Example com.plexapp.agents.imdb agent (str): Example com.plexapp.agents.imdb
type (str): movie, show, # check me type (str): movie, show, # check me
location (str or list): /path/to/files, ["/path/to/files", "/path/to/morefiles"] 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. kwargs (dict): Advanced options should be passed as a dict. where the id is the key.
**Photo Preferences** **Photo Preferences**

View file

@ -612,6 +612,7 @@ if __name__ == "__main__": # noqa: C901
location="/data/Photos" if opts.no_docker is False else photos_path, location="/data/Photos" if opts.no_docker is False else photos_path,
agent="com.plexapp.agents.none", agent="com.plexapp.agents.none",
scanner="Plex Photo Scanner", scanner="Plex Photo Scanner",
language="en",
expected_media_count=has_photos, expected_media_count=has_photos,
) )
) )