1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/UMS_ynh.git synced 2024-10-01 13:35:01 +02:00
This commit is contained in:
Krakinou 2022-03-15 23:10:42 +01:00
parent fa1ec2243f
commit b9d984fd7c
5 changed files with 27 additions and 14 deletions

View file

@ -1,9 +1,9 @@
### Configuration
Once installed, UMS will create config file in `/home/ums/.config/UMS/`
Once installed, UMS will create config file in `/home/yunohost.app/ums/.config/UMS/`
All settings are pretty well documented directly in the files.
The default setting will use the shared multimedia directory by default (located into `/home/yunohost.multimedia/share`), you may change this setting in `/home/ums/.config/UMS/UMS.conf` with the setting "folders"
The default setting will use the shared multimedia directory by default (located into `/home/yunohost.multimedia/share`), you may change this setting in `/home/yunohost.app/ums/.config/UMS/UMS.conf` with the setting "folders"
### Limitations
@ -18,7 +18,7 @@ If you can't find the server on a renderer, you may try the following trouble sh
- Wait a little bit : the first start up will intialized the database and if you have a lot of media, this may take a while
- Wait a little more : the server will broadcast an ALIVE message every 30 sec, so it may take this long for a renderer to find it
- check if the service ums is running in the yunohost admin
- check on which network interface the server is annoucing : You may find the network and address used in `/home/ums/.config/UMS/debug.log` or `/var/log/ums/ums.log`. Search for a line like `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`
- check on which network interface the server is annoucing : You may find the network and address used in `/home/yunohost.app/ums/.config/UMS/debug.log` or `/var/log/ums/ums.log`. Search for a line like `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`
The subnet to be used should be the same as your renderer (ie : if your TV is on 192.168.0.X and ums on 192.168.1.X, this will not work)
On small device (Raspberry for example), transco may be requiring too much power : try some alternate transcoder.

View file

@ -1,15 +1,15 @@
### Configuration
Une fois installé, tous les réglages peuvent etre trouver dans `/ums/.config/UMS/`
Une fois installé, tous les réglages peuvent etre trouver dans `/home/yunohost.app/ums/.config/UMS/`
Les réglages sont plutot bien documentés, vous pouvez les changer directement dans le fichier.
Le réglage par défaut utilisera le répertoire multimedia partagé (situé dans `/home/yunohost.multimedia/share`). Vous pouvez changer ce réglage dans le fichier `/home/ums/.config/UMS/UMS.conf` sur le réglage "folders".
Le réglage par défaut utilisera le répertoire multimedia partagé (situé dans `/home/yunohost.multimedia/share`). Vous pouvez changer ce réglage dans le fichier `/home/yunohost.app/ums/.config/UMS/UMS.conf` sur le réglage "folders".
### Limitations
- pas de multiinstance
- fonctionne uniquement en sous-domaine (ums.mydomain.tld, et non mydomain.tld/ums)
- pas de gestion d'utilisateur
- Pas énormément testée
- Pas énormément testé
### Other infos
@ -17,6 +17,6 @@ Si vous ne trouvez pas le serveur sur vos renderer, vous pouvez essayer les truc
- Attendez un petit peu : lors du premier démarrage, UMS va indexer tous vos médias et ceci peut prendre un certain temps si vous en avez beaucoup
- Attendez encore un peu : le serveur s'annonce par un message ALIVE toutes les 30 sec, donc cela peut prendre tout ce temps avant qu'un renderer ne le trouve
- Vérifiez bien que le service ums tourne dans l'interface d'administration de yunohost
- Vérifiez sur quel interface réseau ums s'annonce. Vous pouvez trouver l'adresse utilisée et le réseau dans `/home/ums/.config/UMS/debug.log` ou `/var/log/ums/ums.log`. Cherchez une ligne ressemblant à `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`. Le sous-réseau utilisé doit être le même que le renderer (ie : si votre TV est sur 192.168.0.X et ums sur 192.168.1.X, cela ne marchera pas)
- Vérifiez sur quel interface réseau ums s'annonce. Vous pouvez trouver l'adresse utilisée et le réseau dans `/home/yunohost.app/ums/.config/UMS/debug.log` ou `/var/log/ums/ums.log`. Cherchez une ligne ressemblant à `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`. Le sous-réseau utilisé doit être le même que le renderer (ie : si votre TV est sur 192.168.0.X et ums sur 192.168.1.X, cela ne marchera pas)
Sur de petits appareils (par exemple un raspberry), la transco peut demander trop de puissance, n'hésiter par à utiliser des transcodeur alternatifs.

View file

@ -6,10 +6,10 @@
"en": "A DLNA, UPnP and HTTP(S) Media Server",
"fr": "Un Serveur Multimedia DLNA, UPnP et HTTP(S)"
},
"version": "10.17.0~ynh1",
"version": "10.18.0~ynh1",
"url": "www.universalmediaserver.com",
"upstream": {
"version": "10.17.0",
"version": "10.18.0",
"license": "GPL-2.0-or-later",
"website": "www.universalmediaserver.com",
"admindoc": "https://github.com/UniversalMediaServer/UniversalMediaServer/wiki",

View file

@ -9,11 +9,11 @@ pkg_dependencies="mediainfo dcraw p7zip"
mach=`uname -m`
sha256_arm64=bb148afaf5b250ec4735bba81cb37ff8625e63e63cb9051472c725c955e3bf13
sha256_armel=8785f54195a5b0a4a126338ccd72b61b00ab59243fe34477e6c8d7d4a90ef530
sha256_armhf=a3664b1907f58b4b125a3a25bca1995bd9949843f38bc71a65908ec3d18006e0
sha256_x86_64=311102fccfb06f90d2f370106c084ff41df6bb391d4f1ceff69b13f4af39f8e6
sha256_x86=b27daf548e6c6e5a164616c5232d8752ad1c1e6c4b1da3477ce30d68904ea4b7
sha256_arm64=ce22661f83df554065e04445c485ee76462afc28aeca1bfe9e8d8500a203a83f
sha256_armel=da7a77a29a0f6bf57c27ea27f720b11434016b4004d7d393af20c1df27dca845
sha256_armhf=2c86cf254d4968d8be300cfc9c721cd83111743144a08d89361ba8aba63b780f
sha256_x86_64=69ebc27143c95e0acaf56b4fb1d6e5aa215291ed5e1a8fbcac53833071715af9
sha256_x86=f03f7191759eb3025a2fd63935b8db2176246300a8aad352601f6a37c58d221a
case "$mach" in
"armv6l" ) mach="armel"

View file

@ -56,6 +56,19 @@ then
usermod -m -d /home/yunohost.app/$app $app
fi
#10.17.0 has a bug that overwrite the media path.
#https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864
#This will reinitialize it to /home/yunohost.multimedia/share
if [ $(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") == "10.17.0" ]
then
ynh_replace_string --match_string="folders =/opt/yunohost/ums,/home/yunohost.app/ums" \
--replace_string="folders=/home/yunohost.multimedia/share" \
--target_file="/home/yunohost.app/ums/.config/UMS/UMS.conf"
ynh_replace_string --match_string="folders_monitored =/opt/yunohost/ums,/home/yunohost.app/ums" \
--replace_string="folders_monitored=/home/yunohost.multimedia/share" \
--target_file="/home/yunohost.app/ums/.config/UMS/UMS.conf"
fi
#=================================================
# STANDARD UPGRADE STEPS
#=================================================