1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/UMS_ynh.git synced 2024-10-01 13:35:01 +02:00

Version 1.9.0

This commit is contained in:
Krakinou 2021-08-10 15:14:15 +02:00
parent eae22e9f94
commit ed8b467446
11 changed files with 77 additions and 27 deletions

View file

@ -20,7 +20,7 @@ It was originally based on PS3 Media Server by shagrath, and started by SubJunk,
Upstream source code may be found [here](https://github.com/UniversalMediaServer/UniversalMediaServer) Upstream source code may be found [here](https://github.com/UniversalMediaServer/UniversalMediaServer)
**Shipped version:** 10.8.2 **Shipped version:** 10.9.0
## Screenshots ## Screenshots

View file

@ -19,7 +19,7 @@ Il utilise by FFmpeg, MediaInfo, OpenSubtitles, Crowdin, MEncoder, tsMuxeR, AviS
Il était originellement basé sur PS3 Media Server de shagrath, et a été lancé par SubJunk, un développeur officiel de PMS, pour assurer la plus grande stabilité et compatiblité. Il était originellement basé sur PS3 Media Server de shagrath, et a été lancé par SubJunk, un développeur officiel de PMS, pour assurer la plus grande stabilité et compatiblité.
Le code du programme peut être consulté [ici]](https://github.com/UniversalMediaServer/UniversalMediaServer) Le code du programme peut être consulté [ici]](https://github.com/UniversalMediaServer/UniversalMediaServer)
**Version incluse :** 10.8.2 **Version incluse :** 10.9.0
## Captures d'écran ## Captures d'écran

View file

@ -13,7 +13,7 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
upgrade=1 from_commit=19ab5f111f2e82b831cde897442366cbff245112 upgrade=1 from_commit=f139d772db4a6180bd6f95f476cffcff8f561f3e
backup_restore=1 backup_restore=1
multi_instance=0 multi_instance=0
port_already_use=1 port_already_use=1

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/10.8.2/UMS-10.8.2-__MACH__.tgz SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-__MACH__.tgz
SOURCE_SUM=__SHA256_SUM__ SOURCE_SUM=__SHA256__
SOURCE_FORMAT=tgz SOURCE_FORMAT=tgz
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_EXTRACT=false SOURCE_EXTRACT=false

24
doc/DISCLAIMER.md Normal file
View file

@ -0,0 +1,24 @@
### Configuration
Once installed, UMS will create config file in `/home/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"
### Limitations
- No multi-instance
- work only on its own subdomain (ums.mydomain.tld, not on mydomain.tld/ums)
- No user management
- Not tested that much
### Other infos
If you can't find the server on a renderer, you may try the following trouble shooting :
- 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)`
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.

22
doc/DISCLAIMER_fr.md Normal file
View file

@ -0,0 +1,22 @@
### Configuration
Une fois installé, tous les réglages peuvent etre trouver dans `/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".
### 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
### Other infos
Si vous ne trouvez pas le serveur sur vos renderer, vous pouvez essayer les trucs suivants:
- 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)
Sur de petits appareils (par exemple un raspberry), la transco peut demander trop de puissance, n'hésiter par à utiliser des transcodeur alternatifs.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View file

@ -6,8 +6,15 @@
"en": "A DLNA, UPnP and HTTP(S) Media Server", "en": "A DLNA, UPnP and HTTP(S) Media Server",
"fr": "Un Serveur Multimedia DLNA, UPnP et HTTP(S)" "fr": "Un Serveur Multimedia DLNA, UPnP et HTTP(S)"
}, },
"version": "10.8.2~ynh1", "version": "10.9.0~ynh1",
"url": "www.universalmediaserver.com", "url": "www.universalmediaserver.com",
"upstream": {
"version": "10.9.0",
"license": "GPL-2.0-or-later",
"website": "www.universalmediaserver.com",
"admindoc": "https://github.com/UniversalMediaServer/UniversalMediaServer/wiki",
"code": "https://github.com/UniversalMediaServer"
},
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"maintainer": { "maintainer": {
"name": "Krakinou", "name": "Krakinou",

View file

@ -7,25 +7,25 @@
# dependencies used by the app # dependencies used by the app
pkg_dependencies="mediainfo dcraw p7zip" pkg_dependencies="mediainfo dcraw p7zip"
MACH=`uname -m` mach=`uname -m`
case "$MACH" in case "$mach" in
"armv6l" ) MACH="armel" "armv6l" ) mach="armel"
SHA256=8a9dae0e39193967774630ab709b47ecb5377dbe2ba2bb0c2adc670845f72fdd sha256=ba056681a3f96afd700ad57d280cb56ab20c6f288fa2b3f89ac6c95d83f11651
#for some reason, jre is not in the tarball #for some reason, jre is not in the tarball
pkg_dependencies="$pkg_dependencies openjdk-8-jre" ;; pkg_dependencies="$pkg_dependencies openjdk-8-jre" ;;
"armv7l" ) if [ $(dpkg --print-architecture) = "armhf" ]; then "armv7l" ) if [ $(dpkg --print-architecture) = "armhf" ]; then
MACH="armhf" mach="armhf"
SHA256=7d1f35fc490aa047f44bb7f06bb35c5b0c5b891704704c419230c81485f34228 sha256=dc7a4e8108707c4b7a4206954591dfb9aa6891f713e9f34c43c259b3a239c0f4
pkg_dependencies="$pkg_dependencies openjdk-8-jre" pkg_dependencies="$pkg_dependencies openjdk-8-jre"
else else
MACH="armel" mach="armel"
SHA256=8a9dae0e39193967774630ab709b47ecb5377dbe2ba2bb0c2adc670845f72fdd sha256=ba056681a3f96afd700ad57d280cb56ab20c6f288fa2b3f89ac6c95d83f11651
pkg_dependencies="$pkg_dependencies openjdk-8-jre" pkg_dependencies="$pkg_dependencies openjdk-8-jre"
fi ;; fi ;;
"armv8l" ) MACH="arm64" "armv8l" ) mach="arm64"
SHA256=775f817cc635ceffbfe9e346e0bb54b2dc98a3ccdc0141c50c65e557585fd50b ;; sha256=dcba4970ab2c29aa994199a083db51ec0dee43581df4cf56503cbcf4592ba19c ;;
"x86_64" ) MACH="x86_64" "x86_64" ) mach="x86_64"
SHA256=5ed7d3d74cab76d7949f582f1258716913f68fe148c815c6d5fdb5ed089608ef ;; sha256=58dda5dec6d37ad3a352060948ec5164439df066fdb54cbdc80a17c450877f84 ;;
* ) MACH="x86" * ) mach="x86"
SHA256=b23fa9dd7e2ccfe015f0a5f93cb710bb79fd62b4ccd9477e3e88359fb918ff33 ;; sha256=5b0d0b5854db2c3f7dffbff9c017b7c1b7a23567852800a4ffb05fb7ae7b3e62 ;;
esac esac

View file

@ -29,11 +29,12 @@ path_url=/
is_public=$YNH_APP_ARG_IS_PUBLIC is_public=$YNH_APP_ARG_IS_PUBLIC
server_name=$YNH_APP_ARG_SERVER_NAME server_name=$YNH_APP_ARG_SERVER_NAME
interface=$YNH_APP_ARG_INTERFACE interface=$YNH_APP_ARG_INTERFACE
#upstream_version=$YNH_APP_MANIFEST_VERSION
upstream_version=$(ynh_app_upstream_version --manifest=./manifest.json)
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#================================================= #=================================================
@ -105,9 +106,7 @@ ynh_script_progression --message="Setting up source files..." --weight=12
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
# Create an app.src for the correct compiled version of UMS # Create an app.src for the correct compiled version of UMS
# match string are fulfilled in _common.sh # match string are fulfilled in _common.sh
cp ../conf/app.src.default ../conf/app.src ynh_add_config --template="../conf/app.src.default" --destination="../conf/app.src"
ynh_replace_string --match_string="__MACH__" --replace_string="$MACH" --target_file="../conf/app.src"
ynh_replace_string --match_string="__SHA256_SUM__" --replace_string="$SHA256" --target_file="../conf/app.src"
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src

View file

@ -72,9 +72,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5 ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
cp ../conf/app.src.default ../conf/app.src ynh_add_config --template="../conf/app.src.default" --destination="../conf/app.src"
ynh_replace_string --match_string="__MACH__" --replace_string="$MACH" --target_file="../conf/app.src"
ynh_replace_string --match_string="__SHA256_SUM__" --replace_string="$SHA256" --target_file="../conf/app.src"
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path"
tar xfvz $final_path/app.tgz --strip-component=1 --directory=$final_path/ tar xfvz $final_path/app.tgz --strip-component=1 --directory=$final_path/
ynh_secure_remove $final_path/app.tgz ynh_secure_remove $final_path/app.tgz