Update of /cvsroot/freevo/freevo/WIP/RobShortt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23453
Added Files:
genstreamdevchan.py
Log Message:
A simple script to generate TV_CHANNELS entries for URL based channels using
a VDR channels.conf. The results are suitable for viewing streams from streamdev.
--- NEW FILE: genstreamdevchan.py ---
#!/usr/bin/env python
import os, string
channels_conf = '/media/vdr/channels.conf'
streamdev_host = 'localhost'
streamdev_port = 3080
streamdev_type = 'PS'
chan_low_range = 20200
chan_hi_range = 20780
print 'TV_CHANNELS = ['
vdrconf = open(channels_conf, 'r')
for line in vdrconf.readlines():
fields = string.split(line, ':')
if len(fields) < 13:
continue
chan = int(fields[12])
cname = fields[0]
if chan < chan_low_range or chan > chan_hi_range:
continue
stream_url = 'http://%s:%s/%s/%s' % (streamdev_host, streamdev_port,
streamdev_type, chan)
print ' (\'C%s%s.dvb\', \'%s %s\', \'%s\'), ' % (chan, string.lower(cname),
chan, cname,
stream_url)
print ' ]'
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog