| chanlist | index /usr/ports/multimedia/kbtv2-core/work/kbtv-2.0/Core/chanlist.py |
MODULE
chanlist -- classes for managing a TV channel list
COPYRIGHT
(c) 2005-2008, Danny Pansters <danny@ricin.com>
All rights reserved. Dit werk is auteursrechtelijk beschermd.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DESCRIPTION
This module contains a set of classes for managing a TV channel list.
Its main purpose is to associate TV channel frequencies with data
such as a descriptive name and a number in Channel objects. There are
also PseudoChannels which are used for composite sources. The
ChannelList is an ordered list of such Channel objects and it can
be loaded from and saved as a cPickle.
CLASSES
Channel
ChannelList
PseudoChannel
CONSTANTS
dict CHANSETS
Channel sets, these are a collection of known frequency tables for a
bunch of countries. Organized in a dict with pairs like 'County': [].
EXAMPLES
import chanlist
dir(chanlist) # to see available classes
dir(chanlist.ChannelList) # to see methods and attributes of ChannelList
help(chanlist) # to see this text
cl = chanlist.ChannelList() # to create an empty ChannelList object
cl.load('/path/to/pickle') # to unpickle a ChannelList object from disk
| Modules | ||||||
| ||||||
| Classes | ||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||
| Data | ||
| CHANSETS = {'Argentina': [56250, 62250, 68250, 78250, 84250, 122250, 128250, 134250, 140250, 146250, 152250, 158250, 164250, 170250, 176250, 182250, 188250, 194250, 200250, 206250, ...], 'Australia': [46250, 57250, 64250, 86250, 95250, 102250, 138250, 175250, 182250, 189250, 196250, 209250, 216250, 527250, 534250, 541250, 548250, 555250, 562250, 569250, ...], 'China Broadcast': [49750, 57750, 65750, 77250, 85250, 112250, 120250, 128250, 136250, 144250, 152250, 160250, 168250, 176250, 184250, 192250, 200250, 208250, 216250, 224250, ...], 'Europe East': [48250, 49750, 55250, 59250, 62250, 69250, 76250, 77250, 83250, 85250, 93250, 105250, 111250, 112250, 119250, 126250, 127250, 133250, 135250, 140250, ...], 'Europe West': [48250, 55250, 62250, 69250, 76250, 83250, 105250, 112250, 119250, 126250, 133250, 140250, 147250, 154250, 161250, 168250, 175250, 182250, 189250, 196250, ...], 'France': [47750, 55750, 60050, 63750, 116750, 128750, 140750, 159750, 164750, 176000, 176750, 184000, 188750, 192000, 200000, 200750, 208000, 212750, 216000, 224750, ...], 'Ireland': [45750, 48000, 53750, 61750, 175250, 176000, 183250, 191250, 192000, 199250, 200000, 207250, 208000, 215250, 216000, 224000, 232000, 248000, 256000, 264000, ...], 'Italy': [53750, 62250, 82250, 175250, 183750, 192250, 201250, 210250, 217250, 224250, 471250, 479250, 487250, 495250, 503250, 511250, 519250, 527250, 535250, 543250, ...], 'Japan Broadcast': [91250, 97250, 103250, 171250, 177250, 183250, 189250, 193250, 199250, 205250, 211250, 217250, 471250, 477250, 483250, 489250, 495250, 501250, 507250, 513250, ...], 'Japan Cable': [109250, 115250, 121250, 127250, 133250, 139250, 145250, 151250, 157250, 165250, 223250, 231250, 237250, 243250, 249250, 253250, 259250, 265250, 271250, 277250, ...], ...} | ||