« Scan automatique des sections plex » : différence entre les versions

Aller à la navigation Aller à la recherche
aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
/usr/lib/plexmediaserver/autorescan.sh :
/usr/lib/plexmediaserver/autorescan.sh :
<pre>
<pre>
#!/bin/sh
su - plex -c "export LD_LIBRARY_PATH='/usr/lib/plexmediaserver';/usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh --section 1"
#SCRIPTPATH=$(dirname $(python -c 'import sys,os;print os.path.realpath(sys.argv[1])' $0))
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname ${SCRIPT}`
export LD_LIBRARY_PATH="${SCRIPTPATH}"
export PLEX_MEDIA_SERVER_HOME="${SCRIPTPATH}"
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
ulimit -s 3000
/usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh --section 6
</pre>
</pre>


4 220

modifications

Menu de navigation