mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 05:00:22 +00:00
Set CI docker container to default environment LANG="en_US.UTF-8" (#820)
This commit is contained in:
parent
71ceed0d5a
commit
0b39e4eea8
1 changed files with 8 additions and 4 deletions
|
@ -55,15 +55,15 @@ DOCKER_CMD = [
|
||||||
"-p",
|
"-p",
|
||||||
"32414:32414/udp",
|
"32414:32414/udp",
|
||||||
"-e",
|
"-e",
|
||||||
'TZ="Europe/London"',
|
|
||||||
"-e",
|
|
||||||
"PLEX_CLAIM=%(claim_token)s",
|
"PLEX_CLAIM=%(claim_token)s",
|
||||||
"-e",
|
"-e",
|
||||||
"ADVERTISE_IP=http://%(advertise_ip)s:32400/",
|
"ADVERTISE_IP=http://%(advertise_ip)s:32400/",
|
||||||
|
"-e",
|
||||||
|
"TZ=%(timezone)s",
|
||||||
|
"-e",
|
||||||
|
"LANG=%(language)s",
|
||||||
"-h",
|
"-h",
|
||||||
"%(hostname)s",
|
"%(hostname)s",
|
||||||
"-e",
|
|
||||||
'TZ="%(timezone)s"',
|
|
||||||
"-v",
|
"-v",
|
||||||
"%(destination)s/db:/config",
|
"%(destination)s/db:/config",
|
||||||
"-v",
|
"-v",
|
||||||
|
@ -352,6 +352,9 @@ if __name__ == "__main__":
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--timezone", help="Timezone to set inside plex", default="UTC"
|
"--timezone", help="Timezone to set inside plex", default="UTC"
|
||||||
) # noqa
|
) # noqa
|
||||||
|
parser.add_argument(
|
||||||
|
"--language", help="Language to set inside plex", default="en_US.UTF-8"
|
||||||
|
) # noqa
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--destination",
|
"--destination",
|
||||||
help="Local path where to store all the media",
|
help="Local path where to store all the media",
|
||||||
|
@ -441,6 +444,7 @@ if __name__ == "__main__":
|
||||||
"hostname": opts.server_name,
|
"hostname": opts.server_name,
|
||||||
"claim_token": account.claimToken() if account else "",
|
"claim_token": account.claimToken() if account else "",
|
||||||
"timezone": opts.timezone,
|
"timezone": opts.timezone,
|
||||||
|
"language": opts.language,
|
||||||
"advertise_ip": opts.advertise_ip,
|
"advertise_ip": opts.advertise_ip,
|
||||||
"image_tag": opts.docker_tag,
|
"image_tag": opts.docker_tag,
|
||||||
"container_name_extra": "" if account else "unclaimed-",
|
"container_name_extra": "" if account else "unclaimed-",
|
||||||
|
|
Loading…
Reference in a new issue