<html><head><title>Python: package channels</title>

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica,
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a
    <p><tt>#&nbsp;encoding:&nbsp;UTF-8<br>
#&nbsp;api:&nbsp;streamtuner2<br>
#&nbsp;type:&nbsp;class<br>
#&nbsp;category:&nbsp;ui<br>
#&nbsp;title:&nbsp;Channel&nbsp;plugins<br>
#&nbsp;description:&nbsp;Base&nbsp;implementation&nbsp;for&nbsp;channels&nbsp;and&nbsp;feature&nbsp;plugins<br>
#&nbsp;version:&nbsp;1.7<br>
#&nbsp;license:&nbsp;public&nbsp;domain<br>
#&nbsp;author:&nbsp;<br>
#&nbsp;url:&nbsp;<a
#&nbsp;pack:<br>
#&nbsp;&nbsp;&nbsp;&nbsp;*.py<br>
#&nbsp;config:&nbsp;-<br>
#&nbsp;priority:&nbsp;core<br>
#<br>
#&nbsp;<a href="#GenericChannel">GenericChannel</a>&nbsp;implements&nbsp;the&nbsp;basic&nbsp;GUI&nbsp;functions&nbsp;and&nbsp;defines<br>
#&nbsp;the&nbsp;default&nbsp;channel&nbsp;data&nbsp;structure.&nbsp;It&nbsp;implements&nbsp;fallback&nbsp;logic<br>
#&nbsp;for&nbsp;all&nbsp;other&nbsp;channel&nbsp;implementations.&nbsp;Only&nbsp;`bookmarks`&nbsp;uses&nbsp;it<br>
#&nbsp;directly.<br>
#<br>
#&nbsp;All&nbsp;other&nbsp;plugins&nbsp;don't&nbsp;have&nbsp;a&nbsp;pre-defined&nbsp;Notebook&nbsp;tab&nbsp;in&nbsp;the<br>
#&nbsp;GtkBuilder&nbsp;description.&nbsp;They&nbsp;derive&nbsp;from&nbsp;ChannelPlugins&nbsp;therefore,<br>

<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package

<tr><td
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a
href="api-channels.bookmarks">bookmarks</a><br>
<a href="channels.cachereset.html">cachereset</a><br>
<a href="channels.configwin.html">configwin</a><br>
<a href="channels.continuous_record.html">continuous_record</a><br>
<a href="channels.delicast.html">delicast</a><br>
<a href="channels.dirble.html">dirble</a><br>
<a href="channels.dnd.html">dnd</a><br>
<a href="channels.exportcat.html">exportcat</a><br>
<a href="channels.favicon.html">favicon</a><br>
<a href="channels.file.html">file</a><br>
<a href="channels.filter_bitrate.html">filter_bitrate</a><br>
<a href="channels.filtermusic.html">filtermusic</a><br>
<a href="channels.global_key.html">global_key</a><br>
<a href="channels.gtk_theme.html">gtk_theme</a><br>
<a href="channels.history.html">history</a><br>
</td><td width="25%" valign=top><a href="channels.housemixes.html">housemixes</a><br>
<a href="channels.internet_radio.html">internet_radio</a><br>
<a href="channels.jamendo.html">jamendo</a><br>
<a href="channels.links.html">links</a><br>
<a href="channels.listenlive.html">listenlive</a><br>
<a href="channels.liveradio.html">liveradio</a><br>
<a href="channels.magnatune.html">magnatune</a><br>
<a href="channels.modarchive.html">modarchive</a><br>
<a href="channels.myoggradio.html">myoggradio</a><br>
<a href="channels.oggicon.html">oggicon</a><br>
<a href="channels.pluginmanager2.html">pluginmanager2</a><br>
<a href="channels.prefstore.html">prefstore</a><br>
<a href="channels.publicradiofan.html">publicradiofan</a><br>
<a href="channels.radiobrowser.html">radiobrowser</a><br>
<a href="channels.radiolist.html">radiolist</a><br>
</td><td width="25%" valign=top><a href="channels.radionet.html">radionet</a><br>
<a href="channels.radionomy.html">radionomy</a><br>
<a href="channels.radiosure.html">radiosure</a><br>
<a href="channels.radiotray.html">radiotray</a><br>
<a href="channels.rcast.html">rcast</a><br>
<a href="channels.reciva.html">reciva</a><br>
<a href="channels.record_stop.html">record_stop</a><br>
<a href="channels.recordflags.html">recordflags</a><br>
<a href="channels.reddit.html">reddit</a><br>
<a href="channels.scripts.html">scripts</a><br>
<a href="channels.search.html">search</a><br>
<a href="channels.shoutcast.html">shoutcast</a><br>
<a href="channels.somafm.html">somafm</a><br>
<a href="channels.specbuttons.html">specbuttons</a><br>
<a href="channels.streamedit.html">streamedit</a><br>
</td><td width="25%" valign=top><a href="channels.streamlicensing.html">streamlicensing</a><br>
<a href="channels.streema.html">streema</a><br>
<a href="channels.surfmusik.html">surfmusik</a><br>
<a href="channels.theme_installer.html">theme_installer</a><br>
<a href="channels.timer.html">timer</a><br>
<a href="channels.tunein.html">tunein</a><br>
<a href="channels.tuner2.html">tuner2</a><br>
<a href="channels.ubuntuusers.html">ubuntuusers</a><br>
<a href="channels.ui_cht.html">ui_cht</a><br>
<a href="channels.useragentswitcher.html">useragentswitcher</a><br>
<a href="channels.version_check.html">version_check</a><br>
<a href="channels.xiph.html">xiph</a><br>
<a href="channels.youtube.html">youtube</a><br>

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica,

<tr><td
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>

<dl>
<dt><font face="helvetica, arial"><a href="#FeaturePlugin">FeaturePlugin</a>

<dl>
<dt><font face="helvetica, arial"><a href="#GenericChannel">GenericChannel</a>

<dl>
<dt><font face="helvetica, arial"><a href="#ChannelPlugin">ChannelPlugin</a>

</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ChannelPlugin">class

<tr bgcolor="#ffc8d8"><td
<td
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a
<dd><a
<dd><a
<dd><a
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>module</strong> = 'abstract'</dl>

<hr>
Methods inherited from <a href="#GenericChannel">GenericChannel</a>:<br>
<dl><dt><a parent<font

<dl><dt><a

<dl><dt><a entries<font

<dl><dt><a

<dl><dt><a new,

<dl><dt><a

<dl><dt><a

<dl><dt><a rows, y<font

<dl><dt><a name, model,

<dl><dt><a category, force<font color="#909090">=False</font>, y<font


<dl><dt><a

<dl><dt><a href="#ChannelPlugin-play">play</a>()&nbsp;for&nbsp;current&nbsp;station.<br>


<dl><dt><a streams)</dt><dd><tt>#&nbsp;Stream&nbsp;list&nbsp;cleanup&nbsp;-&nbsp;invoked&nbsp;directly&nbsp;after&nbsp;<a href="#ChannelPlugin-reload">reload</a>(),<br>


<dl><dt><a row, channel)</dt><dd><tt>#&nbsp;Deduce&nbsp;homepage&nbsp;URLs&nbsp;from&nbsp;title<br>


<dl><dt><a row,

<dl><dt><a streams)</dt><dd><tt>#&nbsp;Prepare&nbsp;stream&nbsp;list&nbsp;for&nbsp;display&nbsp;(called&nbsp;immediataly&nbsp;before&nbsp;.<a

<dl><dt><a

<dl><dt><a max, i<font

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a gtkIcon<font

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a name<font

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a search<font color="#909090">='name'</font>, title<font

<dl><dt><a

<hr>
Data descriptors inherited from <a href="#GenericChannel">GenericChannel</a>:<br>

</dl>
<hr>
Data and other attributes inherited from <a href="#GenericChannel">GenericChannel</a>:<br>
<dl><dt><strong>audioformat</strong> =

<dl><dt><strong>base_url</strong> = ''</dl>

<dl><dt><strong>categories</strong> = []</dl>

<dl><dt><strong>catmap</strong> = {}</dl>

<dl><dt><strong>datamap</strong> = [['', 20, ['state', &lt;type 'str'&gt;, 'pixbuf', {}]], ['Genre', 65, ['genre', &lt;type 'str'&gt;, 't', {}]], ['Station Title', 275, ['title', &lt;type 'str'&gt;, 'text', {'cell-background': 12, 'cell-background-set': 13, 'strikethrough': 11}], ['favicon', &lt;type 'gtk.gdk.Pixbuf'&gt;, 'pixbuf', {}]], ['Now Playing', 185, ['playing', &lt;type 'str'&gt;, 'text', {'strikethrough': 11}]], ['Listeners', 45, ['listeners', &lt;type 'int'&gt;, 't', {'strikethrough': 11}]], ['Bitrate', 35, ['bitrate', &lt;type 'int'&gt;, 't', {}]], ['Homepage', 160, ['homepage', &lt;type 'str'&gt;, 't', {'underline': 10}]], [False, 25, ['url', &lt;type 'str'&gt;, 't', {'strikethrough': 11}]], [False, 20, ['format', &lt;type 'str'&gt;, None, {}]], [False, 0, ['favourite', &lt;type 'bool'&gt;, None, {}]], [False, 0, ['deleted', &lt;type 'bool'&gt;, None, {}]], [False, 0, ['search_col', &lt;type 'str'&gt;, None, {}]], [False, 0, ['search_set', &lt;type 'bool'&gt;, None, {}]]]</dl>

<dl><dt><strong>empty_stub</strong> = [{'bitrate': 0, 'genre': './.', 'homepage': '', 'listeners': 0, 'playing': 'Try Channel<font Categories later..', 'state': 'gtk-dialog-error', 'title': 'No categories found (website error)', 'url': 'none:'}]</dl>

<dl><dt><strong>fixed_size</strong> = [24, 24]</dl>

<dl><dt><strong>gtk_cat</strong> = None</dl>

<dl><dt><strong>gtk_list</strong> = None</dl>

<dl><dt><strong>has_search</strong> = False</dl>

<dl><dt><strong>img_resize</strong> = None</dl>

<dl><dt><strong>listformat</strong> = 'pls'</dl>

<dl><dt><strong>ls</strong> = None</dl>

<dl><dt><strong>meta</strong> = {'config': []}</dl>

<dl><dt><strong>nothing_found</strong> = [{'bitrate': 0, 'genre': './.', 'listeners': 0, 'playing': 'Notice', 'state': 'gtk-no', 'title': 'No contents found on directory server'}]</dl>

<dl><dt><strong>pix_entry</strong> = None</dl>

<dl><dt><strong>placeholder</strong> = [{'bitrate': 0, 'genre': './.', 'homepage': '', 'listeners': 0, 'playing': './.', 'state': 'gtk-info', 'title': 'Subcategory placeholder', 'url': 'none:'}]</dl>

<dl><dt><strong>postprocess_filters</strong> = []</dl>

<dl><dt><strong>prepare_filters</strong> = []</dl>

<dl><dt><strong>progress_state</strong> = 1</dl>

<dl><dt><strong>rowmap</strong> = []</dl>

<dl><dt><strong>rx_www_url</strong> = &lt;_sre.SRE_Pattern object&gt;</dl>

<dl><dt><strong>shown</strong> = None</dl>

<dl><dt><strong>streams</strong> = {}</dl>

<dl><dt><strong>titles</strong> = {}</dl>

<hr>
Methods inherited from <a href="#FeaturePlugin">FeaturePlugin</a>:<br>
<dl><dt><a parent, *k,

<dl><dt><a *args,

<dl><dt><a text, *args,

<hr>
Data descriptors inherited from <a href="#FeaturePlugin">FeaturePlugin</a>:<br>


</dl>


</dl>
<hr>
Data and other attributes inherited from <a href="#FeaturePlugin">FeaturePlugin</a>:<br>
<dl><dt><strong>parent</strong> = None</dl>

<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="FeaturePlugin">class


<tr bgcolor="#ffc8d8"><td
<td
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a parent, *k,

<dl><dt><a parent, *k,

<dl><dt><a *args,

<dl><dt><a text, *args,

<hr>
Data descriptors defined here:<br>


</dl>


</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>meta</strong> = {'config': []}</dl>

<dl><dt><strong>module</strong> = ''</dl>

<dl><dt><strong>parent</strong> = None</dl>

<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="GenericChannel">class

<tr bgcolor="#ffc8d8"><td
<td
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a
<dd><a
<dd><a
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a parent<font

<dl><dt><a

<dl><dt><a entries<font

<dl><dt><a

<dl><dt><a new,

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a rows, y<font

<dl><dt><a name, model,

<dl><dt><a category, force<font color="#909090">=False</font>, y<font


<dl><dt><a

<dl><dt><a href="#GenericChannel-play">play</a>()&nbsp;for&nbsp;current&nbsp;station.<br>


<dl><dt><a streams)</dt><dd><tt>#&nbsp;Stream&nbsp;list&nbsp;cleanup&nbsp;-&nbsp;invoked&nbsp;directly&nbsp;after&nbsp;<a href="#GenericChannel-reload">reload</a>(),<br>


<dl><dt><a row, channel)</dt><dd><tt>#&nbsp;Deduce&nbsp;homepage&nbsp;URLs&nbsp;from&nbsp;title<br>


<dl><dt><a row,

<dl><dt><a streams)</dt><dd><tt>#&nbsp;Prepare&nbsp;stream&nbsp;list&nbsp;for&nbsp;display&nbsp;(called&nbsp;immediataly&nbsp;before&nbsp;.<a

<dl><dt><a

<dl><dt><a max, i<font

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a gtkIcon<font

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a name<font

<dl><dt><a

<dl><dt><a

<dl><dt><a

<dl><dt><a search<font color="#909090">='name'</font>, title<font

<dl><dt><a

<hr>
Data descriptors defined here:<br>

</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>audioformat</strong> =

<dl><dt><strong>base_url</strong> = ''</dl>

<dl><dt><strong>categories</strong> = []</dl>

<dl><dt><strong>catmap</strong> = {}</dl>

<dl><dt><strong>datamap</strong> = [['', 20, ['state', &lt;type 'str'&gt;, 'pixbuf', {}]], ['Genre', 65, ['genre', &lt;type 'str'&gt;, 't', {}]], ['Station Title', 275, ['title', &lt;type 'str'&gt;, 'text', {'cell-background': 12, 'cell-background-set': 13, 'strikethrough': 11}], ['favicon', &lt;type 'gtk.gdk.Pixbuf'&gt;, 'pixbuf', {}]], ['Now Playing', 185, ['playing', &lt;type 'str'&gt;, 'text', {'strikethrough': 11}]], ['Listeners', 45, ['listeners', &lt;type 'int'&gt;, 't', {'strikethrough': 11}]], ['Bitrate', 35, ['bitrate', &lt;type 'int'&gt;, 't', {}]], ['Homepage', 160, ['homepage', &lt;type 'str'&gt;, 't', {'underline': 10}]], [False, 25, ['url', &lt;type 'str'&gt;, 't', {'strikethrough': 11}]], [False, 20, ['format', &lt;type 'str'&gt;, None, {}]], [False, 0, ['favourite', &lt;type 'bool'&gt;, None, {}]], [False, 0, ['deleted', &lt;type 'bool'&gt;, None, {}]], [False, 0, ['search_col', &lt;type 'str'&gt;, None, {}]], [False, 0, ['search_set', &lt;type 'bool'&gt;, None, {}]]]</dl>

<dl><dt><strong>empty_stub</strong> = [{'bitrate': 0, 'genre': './.', 'homepage': '', 'listeners': 0, 'playing': 'Try Channel<font Categories later..', 'state': 'gtk-dialog-error', 'title': 'No categories found (website error)', 'url': 'none:'}]</dl>

<dl><dt><strong>fixed_size</strong> = [24, 24]</dl>

<dl><dt><strong>gtk_cat</strong> = None</dl>

<dl><dt><strong>gtk_list</strong> = None</dl>

<dl><dt><strong>has_search</strong> = False</dl>

<dl><dt><strong>img_resize</strong> = None</dl>

<dl><dt><strong>listformat</strong> = 'pls'</dl>

<dl><dt><strong>ls</strong> = None</dl>

<dl><dt><strong>meta</strong> = {'config': []}</dl>

<dl><dt><strong>nothing_found</strong> = [{'bitrate': 0, 'genre': './.', 'listeners': 0, 'playing': 'Notice', 'state': 'gtk-no', 'title': 'No contents found on directory server'}]</dl>

<dl><dt><strong>pix_entry</strong> = None</dl>

<dl><dt><strong>placeholder</strong> = [{'bitrate': 0, 'genre': './.', 'homepage': '', 'listeners': 0, 'playing': './.', 'state': 'gtk-info', 'title': 'Subcategory placeholder', 'url': 'none:'}]</dl>

<dl><dt><strong>postprocess_filters</strong> = []</dl>

<dl><dt><strong>prepare_filters</strong> = []</dl>

<dl><dt><strong>progress_state</strong> = 1</dl>

<dl><dt><strong>rowmap</strong> = []</dl>

<dl><dt><strong>rx_www_url</strong> = &lt;_sre.SRE_Pattern object&gt;</dl>

<dl><dt><strong>shown</strong> = None</dl>

<dl><dt><strong>streams</strong> = {}</dl>

<dl><dt><strong>titles</strong> = {}</dl>

<hr>
Methods inherited from <a href="#FeaturePlugin">FeaturePlugin</a>:<br>
<dl><dt><a parent, *k,

<dl><dt><a *args,

<dl><dt><a text, *args,

<hr>
Data descriptors inherited from <a href="#FeaturePlugin">FeaturePlugin</a>:<br>


</dl>


</dl>
<hr>
Data and other attributes inherited from <a href="#FeaturePlugin">FeaturePlugin</a>:<br>
<dl><dt><strong>module</strong> = ''</dl>

<dl><dt><strong>parent</strong> = None</dl>


<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica,

<tr><td
<td width="100%"><dl><dt><a
 <dl><dt><a

 <dl><dt><a
 <dl><dt><a
 <dl><dt><a
#&nbsp;eases&nbsp;instantiations&nbsp;without&nbsp;GUI&nbsp;a&nbsp;little,<br>

 <dl><dt><a
 <dl><dt><a
 <dl><dt><a

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica,

<tr><td
<td width="100%"><strong>__all__</strong> = ['FeaturePlugin', 'GenericChannel', 'ChannelPlugin', 'use_rx', 'mime_fmt', 'stub_parent', 'entity_decode', 'strip_tags', 'nl', 'unhtml',