From 6a19c6ea0200e4b72690533b8e50a370a4190fbe Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 18 May 2024 11:58:36 -0700 Subject: [PATCH 1/2] Update default language for library add --- plexapi/library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexapi/library.py b/plexapi/library.py index 662b5462a..f1bf5375a 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -226,7 +226,7 @@ def deleteMediaPreviews(self): 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 @@ def add(self, name='', type='', agent='', scanner='', location='', language='en' 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** From 8306f2931574b61c9c483e96841a3b576734d820 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 18 May 2024 12:11:39 -0700 Subject: [PATCH 2/2] Add explicit photo library language to bootstrap server --- tools/plex-bootstraptest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/plex-bootstraptest.py b/tools/plex-bootstraptest.py index 0bb6595f0..6d53cea83 100755 --- a/tools/plex-bootstraptest.py +++ b/tools/plex-bootstraptest.py @@ -612,6 +612,7 @@ def alert_callback(data): 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, ) )