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** 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, ) )