Code Search for Developers
 
 
  

recrep.sh from eVDR at Krugle


Show recrep.sh syntax highlighted

#!/bin/bash
#------------------------------------------------------------------------------
# this script allows searching for a repeat of recording using epgsearch (>=0.9.3)
# add the following lines to your reccmds.conf
#
# Search for repeat : /path_to_this_script/recrep.sh 0
# Search for repeat with subtitle (same episode): /path_to_this_script/recrep.sh 1
#
# Author: Christian Wieninger (cwieninger@gmx.de)
#------------------------------------------------------------------------------

# adjust the following lines to your config
# your video dir
VIDEODIR=/video
# your plugins config dir
PLUGINCONFDIR=/etc/vdr/plugins
# path to svdrpsend.pl
SVDRPSEND=/vdr/sbin/svdrpsend.pl
# if you are using special subfolders for some recordings, please add them here
FOLDERS="docu,series,magazines"
# the key used to call epgsearch
EPGSEARCHKEY=green

# do not edit below this line

cat << EOM >/tmp/cmd.sh
SEARCHTERM='$2'
#cut a trailing /
SEARCHTERM=\${SEARCHTERM%*/}
#cut leading video dir
SEARCHTERM=\${SEARCHTERM#$VIDEODIR}
#cut leading /
SEARCHTERM=\${SEARCHTERM#/}
#cut leading special folders
i=0;
FOLDERS=$FOLDERS;
while [ "\$LASTWORD" != "\$FOLDERS" ];
do
    LASTWORD=\${FOLDERS%%,*};
    SEARCHTERM=\${SEARCHTERM#*\$LASTWORD/};
    i=\$i+1;
    FOLDERS=\${FOLDERS#*,};
done
#cut last subdir
SEARCHTERM=\${SEARCHTERM%/*.rec}
#cut trailing dummy subtitle created by epgsearch
SEARCHTERM=\${SEARCHTERM%/???_??.??.????-??:??}
if [ "$1" -eq "0" ]; then
    SEARCHTERM=\${SEARCHTERM%/*};
fi
#replace / with ~ as word delimiter
SEARCHTERM=\${SEARCHTERM//\//~}
#replace _ with blank
SEARCHTERM=\${SEARCHTERM//_/ }

RCFILE=$PLUGINCONFDIR/.epgsearchrc
echo Search=\$SEARCHTERM > \$RCFILE
#search for this term as phrase
echo SearchMode=0 >> \$RCFILE
if [ "$1" -eq "0" ]; then
    echo UseSubtitle=0 >> \$RCFILE;
fi
echo UseDescr=0 >> \$RCFILE
$SVDRPSEND HITK $EPGSEARCHKEY
EOM

echo ". /tmp/cmd.sh; rm /tmp/cmd.sh" | at now
#/tmp/cmd.sh;
#cat /video/plugins/.epgsearchrc






See more files for this project here

eVDR

The aim of eVDR is to build a fully operational Video Disk Recorder entirely from scratch. That means it provides a step-by-step instructions for building your own customized Linux Video Disk Recorder box entirely from source.

Project homepage: http://sourceforge.net/projects/evdr
Programming language(s): Shell Script,XML
License: gpl2

  etc/
    hotplug/
      pci/
      usb/
        tascam_fpga
        tascam_fw
        tascam_fw.usermap
      blacklist
      dasd.agent
      dasd.permissions
      firmware.agent
      hotplug.functions
      ieee1394.agent
      input.agent
      net.agent
      pci.agent
      pci.rc
      pnp.distmap
      pnp.rc
      scsi.agent
      tape.agent
      tape.permissions
      usb.agent
      usb.distmap
      usb.handmap
      usb.rc
      usb.usermap
    init.d/
      ntpd
      udev
      vdradmin
    udev/
      rules.d/
        25-lfs.rules
        lirc.rules
      scripts/
        dvb.sh
      udev.conf
    auto.master
    auto.misc
    auto.net
  hotplug/
    firmware/
      Root-262-patched
      Root-2620-patched-cr
      dvb-ttpci-01-0262-patched.fw
      dvb-ttpci-01-2621-patched.fw
      dvb-ttpci-01-patched-cr.fw
      dvb-ttpci-01.fw
      dvb-ttpci-01.fw-261a
      dvb-ttpci-01.fw-261c
      dvb-ttpci-01.fw-261d
      dvb-ttpci-01.fw-261f
      dvb-ttpci-01.fw-261f.patched
  imon/
    LCDd.conf
    lcdproc.conf
  udev/
    rules.d/
      25-lfs.rules
      dvb.rules
      lirc.rules
    scripts/
      dvb.sh
    dvb.rules
    lirc.rules
    udev
    udev.conf
  vdr/
    icons/
    logos/
    plugins/
    scan/
    themes/
    ca.conf
    channels.conf
    channels.conf.ASTRA-FRENCH
    channels.conf.HOTBIRD
    channels.conf.HOTBIRD-FRENCH
    channels.conf.INFOS
    channels.conf.SPORT
    channels.conf.TVMUSIC
    commands.conf
    dessins_animes.conf
    diseqc.conf
    infos.conf
    keymacros.conf
    mount.sh
    mplayer.sh
    mplayer.sh.conf
    music.conf
    prefermenu.conf
    remote.conf
    setup.conf
    sources.conf
    sport.conf
    svdrphosts.conf
    timers.conf
    vdrshutdown.sh
  SCANastra.sh
  SCANastraRADIO.sh
  SCANastraTV.sh
  SCANhotbird.sh
  SCANhotbirdRADIO.sh
  SCANhotbirdTV.sh
  epg2autotimer.sh
  epg2taste.sh
  image_pregen.sh
  imageplugin.sh
  lcd
  lircd
  lircmd.conf
  lircrc
  recrep.sh
  rememberevent.sh
  runvdr
  sleephalt.sh
  timerrep.sh
  vdradmind.conf
  vdrshutdown.sh