Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: vdradmin: how to discard some movie?
Hi,
following this thread i made a test of my simpler tip,
first the way i wrote it does not work, vdr does not
re-read this file....
so i followed my thought of having a script that
sort out episodes one allready has (vdr or divx).
while that is not finished yet, i allready can sort out
unwanted timers by one (or more) patterns, and deactivate
them using svdrp in a shell script (using netcat,grep,sed):
#!/bin/bash
#set -xv
#to deactivate vdr autotimers which match the .at but not wanted by the
#user
#
#V 0.0.1 okx-at-gmx-dot-de
TIMERS=/tmp/svdrp-timers.txt
VDR_HOST="127.0.0.1 2001"
NETCAT=/usr/bin/nc
LOG_FILE=$(dirname $0)/svdrp.log
PATTERN_LIST="[Ss]impsons.*[Ss]kate.*[Bb]oard"
#this will be generated from a divx dir containing a archive of episodes
echo -e "lstt\nquit"|$NETCAT -i 2 ${VDR_HOST} |grep -v -e "^22[01] "|\
sed 's/^250.[0-9]* //g' > $TIMERS
rm -f $TIMERS.update
for PATTERN in $PATTERN_LIST
do
cat $TIMERS|grep -e "$PATTERN"|while read i
do
echo "updt 0:$(echo $i|cut -f2- -d":")">>$TIMERS.update
done
done
echo "quit">>$TIMERS.update
cat $TIMERS.update|$NETCAT -i 2 ${VDR_HOST} >$LOG_FILE
if anyone interessted in further infos on this please
feel free to reply ....
Regards Onno
Gregoire Favre schrieb:
Hello,
I have the following vdradmind.at:
1:mathemat:7:::0:99:99:0:
0:physic:7:::0:99:99:0:
1:parapente:7:::0:99:99:0:
1:skate:1:::0:99:99:0:
1:rapaces:7:::0:99:99:0:
1:base-jump:7:::0:99:99:0:
1:son of the beach:7:::0:99:99:0:
1:paraglid:7:::0:99:99:0:
1:gleitschirm:7:::0:99:99:0:
1:fallschirm:7:::0:99:99:0:
1:parachute:7:::0:99:99:0:
1:mathémat:7:::0:99:99:0:
0:physik:7:::0:99:99:0:
0:physiq:7:::0:99:99:0:
1:Les petites couleurs:7:::0:99:99:0:
Is there a way to make it not reccording some movie having a special
works for example in the title (like "Point Break") ?
Thank you very much,
Grégoire
__________________________________________________________________
http://www-ima.unil.ch/greg ICQ:16624071 mailto:greg@magma.unil.ch
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index