Auto-sub Bierdopje ondertitels

Automatisch ondertitels downloadan van bierdopje. Op Elanor:

Documentatie

Installatie

Downloaden
cd /share/MD0_DATA/.qpkg
wget http://auto-sub.googlecode.com/files/auto-sub.Beta.0.5.7.zip
/opt/bin/unzip auto-sub.Beta.0.5.7.zip
rm auto-sub.Beta.0.5.7.zip

1)

/opt/etc/init.d/auto-sub.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: Auto-sub application instance
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of Auto-sub
# Description: starts instance of Auto-sub using start-stop-daemon
### END INIT INFO
############### EDIT ME ##################
QPKG_NAME=auto-sub
QPKG_DIR=
DAEMON=/opt/bin/python2.6
DAEMON_OPTS=" /share/MD0_DATA/.qpkg/auto-sub/AutoSub.py -c /share/MD0_DATA/.qpkg/auto-sub/config.properties -d -l"
case "$1" in
start)
echo "Starting $QPKG_NAME"
if [ `/sbin/getcfg ${QPKG_NAME} Enable -u -d FALSE -f /etc/config/qpkg.conf` = UNKNOWN ]; then
/sbin/setcfg ${QPKG_NAME} Enable TRUE -f /etc/config/qpkg.conf
elif [ `/sbin/getcfg ${QPKG_NAME} Enable -u -d FALSE -f /etc/config/qpkg.conf` != TRUE ]; then
echo "${QPKG_NAME} is disabled."
exit 1
fi
${DAEMON} ${DAEMON_OPTS}
;;
stop)
echo "Stopping $QPKG_NAME"
for pid in $(/bin/pidof python); do
/bin/grep -q "AutoSub.py" /proc/$pid/cmdline && /bin/kill $pid
done
/bin/sleep 2
;;
restart|force-reload)
echo "Restarting $QPKG_NAME"
$0 stop
$0 start
;;
*)
N=/etc/init.d/$QPKG_NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
/etc/config/qpkg.conf
[auto-sub]
Name = auto-sub
Version =
Enable = TRUE
QPKG_File =
Date = 2013-10-27
shell = /share/MD0_DATA/.qpkg/auto-sub/AutoSub.sh
Install_Path = /share/MD0_DATA/.qpkg/auto-sub
WebUI = /
Author = Pieter
Web_port = 8083
RC_Number = 133
[auto-sub]
Name = auto-sub
Version =
Enable = TRUE
QPKG_File =
Date = 2013-10-27
shell = /share/MD0_DATA/.qpkg/auto-sub/AutoSub.sh
Install_Path = /share/MD0_DATA/.qpkg/auto-sub
WebUI = /
Author = Pieter
Web_port = 8083
RC_Number = 133
Instellen
cd /share/MD0_DATA/.qpkg/AutoSub
/usr/bin/python2.6 AutoSub.py

Surf nu naar http://elanor:8083

  • Gaan naar de configuratie pagina
  • Controleer de instellingen. Stel in elk geval in:
    • path : direcory waar AutoSub.py staat, voor elanor /share/MDO_DATA/.qpkg/auto-sub/
    • Rootpath : directory met TV series, voor elanor /share/MD0_DATA/Films/TV Series/
  • Sla de configuratie op

Daarna:

auto-sub opnieuw opstarten
/etc/init.d/auto-sub.sh restart
  • (Should point to the root of your series folder) and go to config and save it once. This will create a default config file. Next shutdown auto-sub and you will be able to use the AutoSub.sh script.

De-installatie

/opt/etc/init.d/auto-sub stop
rm /opt/etc/init.d/auto-sub 
rm -r /share/MD0_DATA/.qpkg/auto-sub

Daarna /etc/config/qpkg.conf terug veranderen.

1)
De unzip versie in de QNAP firmware is niet zo bi
/share/Web/dokuwiki/data/pages/beheer/auto-sub.txt ยท Laatst gewijzigd: 2013/12/23 13:46 door pieter
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5