Epg2autotimer.sh

Материал из RuVDRWiki

Перейти к: навигация, поиск

Скрипт модуля Epgsearch

Файл
$PATH/epg2autotimer.sh
#!/bin/sh
#
# epg2autotimer.sh
#
# source: vdr-plugin epgsearch
#
# add this line to your epgsearchcmds.conf:
# folgende zeile in die epgsearchcmds.conf eintragen:
#
# epg2autotimer : /path_to_this_script/epg2autotimer.sh

# CONFIG START
  AUTOTIMER_FILE="/usr/local/etc/vdradmin/vdradmind.at"

# default autotimer settings
  STATUS=1        # 0 = inactive (by default) / 1 = active
  SERIE=1         # Serienaufnahme
  PRIO=0          # Priority / Priorität
  LIFE_TIME=0     # Lifetime / Lebensdauer
  TARGET_DIR=     # Folder / Verzeichnis
  SEARCH_WHERE=1  # Where to search / Wo soll gesucht werden? 1: Title 3: Title+Subtitle 7: All
# CONFIG END

if touch $AUTOTIMER_FILE >/dev/null 2>&1 ; then
    # add autotimer
    echo "$STATUS:$1:$SEARCH_WHERE:::$SERIE:$PRIO:$LIFE_TIME:$4:$TARGET_DIR" >> $AUTOTIMER_FILE
else
    echo "Error, cannot open file ($AUTOTIMER_FILE)..."
fi
Личные инструменты