some fixes
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 08:26:09 +0000 (10:26 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 08:26:09 +0000 (10:26 +0200)
attempt to create smaller docker image
some translation strings updated

Dockerfile
music_assistant/web.py
music_assistant/web/strings.js

index e5e9bbbc6fb00c07cbb481f3fff33a2fcb298e8b..bdd5c698d49455ddd895935aa682664cc1445627 100755 (executable)
@@ -1,12 +1,17 @@
 FROM python:3.7-buster
 
-RUN apt-get update && apt-get install -y --no-install-recommends \
-               flac sox zip curl wget ffmpeg libsndfile1 libtag1-dev build-essential \
-        python3-numpy python3-scipy python3-matplotlib python3-taglib \
-       && rm -rf /var/lib/apt/lists/*
-
 COPY requirements.txt requirements.txt
-RUN pip install -r requirements.txt
+RUN apt-get update && apt-get install -y --no-install-recommends \
+               # required packages
+               flac sox libsox-fmt-mp3 zip curl wget ffmpeg libsndfile1 \
+               python3-numpy python3-scipy python3-matplotlib python3-taglib \
+               # build packages
+               libtag1-dev build-essential && \
+       # install required python packages with pip
+       pip install -r requirements.txt && \
+       # cleanup build packages
+       apt-get remove --purge -y build-essential libtag1-dev $(apt-mark showauto) && \
+       rm -rf /var/lib/apt/lists/*
 
 # copy app files
 RUN mkdir -p /usr/src/app
index f4fff6bb29b8b1722f05e132a1e4f7324d0556dc..1ac65d8efb8dcc023e2b7adcecc3736cbe9c484a 100755 (executable)
@@ -15,7 +15,7 @@ from .utils import run_periodic, LOGGER, run_async_background_task, get_ip, json
 
 CONF_KEY = 'web'
 CONFIG_ENTRIES = [
-        ('http_port', 8095, 'webhttp_port'),
+        ('http_port', 8095, 'web_http_port'),
         ('https_port', 8096, 'web_https_port'),
         ('ssl_certificate', '', 'web_ssl_cert'), 
         ('ssl_key', '', 'web_ssl_key'),
index 5c1df07628d94eb900891de20b1265e0b97f7635..02a35846e8536a63b41c0346897658558b9357d7 100644 (file)
@@ -33,8 +33,7 @@ const messages = {
             tunein: "TuneIn",
             file: "Filesystem",
             chromecast: "Chromecast",
-            lms: "Logitech Media Server",
-            pylms: "Emulated (built-in) Squeezebox support",
+            squeezebox: "Squeezebox support",
             username: "Username",
             password: "Password",
             hostname: "Hostname (or IP)",
@@ -71,7 +70,9 @@ const messages = {
             not_grouped: "Not grouped",
             conf_saved: "Configuration saved, restart app to make effective",
             audio_cache_folder: "Directory to use for cache files",
-            audio_cache_max_size_gb: "Maximum size of the cache folder (GB)"
+            audio_cache_max_size_gb: "Maximum size of the cache folder (GB)",
+            gapless_enabled: "Enable gapless support",
+            crossfade_duration: "Crossfade duration (in seconds, 0 to disable)"
         },
         // player strings
         players: "Players",
@@ -121,8 +122,7 @@ const messages = {
             tunein: "TuneIn",
             file: "Bestandssysteem",
             chromecast: "Chromecast",
-            lms: "Logitech Media Server",
-            pylms: "Geemuleerde (ingebouwde) Squeezebox ondersteuning",
+            squeezebox: "Squeezebox ondersteuning",
             username: "Gebruikersnaam",
             password: "Wachtwoord",
             hostname: "Hostnaam (of IP)",
@@ -159,7 +159,9 @@ const messages = {
             not_grouped: "Niet gegroepeerd",
             conf_saved: "Configuratie is opgeslagen, herstart om actief te maken",
             audio_cache_folder: "Map om te gebruiken voor cache bestanden",
-            audio_cache_max_size_gb: "Maximale grootte van de cache map in GB."
+            audio_cache_max_size_gb: "Maximale grootte van de cache map in GB.",
+            gapless_enabled: "Schakel ondersteuning voor gapless in.",
+            crossfade_duration: "Crossfade in (seconden, 0 om uit te schakelen)."
         },
         // player strings
         players: "Spelers",