Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: VDR developer version 1.1.16
On Mon, Nov 11, 2002 at 03:47:08PM +0100, Klaus Schmidinger wrote:
> RTL:12188:h:S19.2E:27500:163:104:105:0:12003
> ^^^^^ ^^^^^^ ^^^^^
OK, then one might consider using (with backups...):
#! /usr/bin/env python
# arigo@tunes.org
g = open('channels.conf')
out1 = open('channels-ok.conf', 'w')
out2 = open('channels-dup.conf', 'w')
d = {}
for line in g:
f = out1
s = line.split(':')
if len(s) == 10:
key = (s[1], s[3], s[-1])
if key in d:
f = out2
else:
d[key] = 1
f.write(line)
print len(d), 'channels found.'
Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index