Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Wenn ein Sender einmal verschlüsselt war, würde ich ihn immer als verschlüsselt einordnen.
This post has been edited 1 times, last edit by "hepi" (May 2nd 2012, 7:19pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/bash
IFS="
"
CONFPATH='/tmp/bouquets/vdr'
mkdir -p $CONFPATH/≤1.7.20
cd $CONFPATH
for CHANNELSCONF in $(find * -name 'channels.conf')
do
cd $CONFPATH
rm -rf $CONFPATH/≤1.7.20/${CHANNELSCONF}
for CONFLINE in $(cat ${CHANNELSCONF})
do
PART1=$(echo ${CONFLINE} | cut -d ":" -f 1-7)
EDIT=$(echo ${CONFLINE} | cut -d ":" -f 8 | cut -d ";" -f 1)
PART2=$(echo ${CONFLINE} | cut -d ":" -f 9-)
if [ -z ${EDIT} ]; then
echo ${PART1} >> $CONFPATH/≤1.7.20/${CHANNELSCONF}
else
echo ${PART1}:${EDIT}:${PART2} >> $CONFPATH/≤1.7.20/${CHANNELSCONF}
fi
done
done
|
This post has been edited 4 times, last edit by "hepi" (May 6th 2012, 4:07pm)