Skip to content

Commit 7b317ef

Browse files
authored
Update default language for library add (#1416)
* Update default language for library add * Add explicit photo library language to bootstrap server
1 parent 5e6db51 commit 7b317ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plexapi/library.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,15 @@ def deleteMediaPreviews(self):
226226
section.deleteMediaPreviews()
227227
return self
228228

229-
def add(self, name='', type='', agent='', scanner='', location='', language='en', *args, **kwargs):
229+
def add(self, name='', type='', agent='', scanner='', location='', language='en-US', *args, **kwargs):
230230
""" Simplified add for the most common options.
231231
232232
Parameters:
233233
name (str): Name of the library
234234
agent (str): Example com.plexapp.agents.imdb
235235
type (str): movie, show, # check me
236236
location (str or list): /path/to/files, ["/path/to/files", "/path/to/morefiles"]
237-
language (str): Two letter language fx en
237+
language (str): Four letter language code (e.g. en-US)
238238
kwargs (dict): Advanced options should be passed as a dict. where the id is the key.
239239
240240
**Photo Preferences**

tools/plex-bootstraptest.py

+1
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ def alert_callback(data):
612612
location="/data/Photos" if opts.no_docker is False else photos_path,
613613
agent="com.plexapp.agents.none",
614614
scanner="Plex Photo Scanner",
615+
language="en",
615616
expected_media_count=has_photos,
616617
)
617618
)

0 commit comments

Comments
 (0)