Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Changes To write a plugin

Changes to "write a plugin" between 2015-04-14 10:11:46 and 2015-04-14 10:13:09

103
104
105
106
107
108
109
110

111
112
113
114
115
116
103
104
105
106
107
108
109

110
111
112
113
114
115
116







-
+






 - **default** = "Pop"  
   Is obsolete. Used to specify the first shown category. (That was a workaround for initial crude Gtk handling.)

 - **titles =** `dict(listeners=False)`  
   This defines which station column titles to show. There are title=, genre= which you commonly have. And there is playing= or bitrate= and homepage= which you can omit by setting it to `=False`. Alternatively just rename them with `playing="Artist/Album name`.

 - **datamap** = `[...]`  
   If you want some complexity, column title renaming, and using custom row attributes can be accomplished with a Gtk TreeView datamap. No, you don't want to do that.
   If you want some complexity, such as complex column title renaming, extra pickmaps, or using custom row fields/attributes - then this can all be accomplished with a Gtk TreeView *datamap*. No, you don't want to do that.

 - Other internal fields are listed in `channels/_generic.py`

### Installation

To have a new plugin picked up, you need to copy/symlink the file into `/usr/share/streamtuner2/channels/`. It's imported from the `channels` module group automatically. Which allows relocatability, and later even local plugins. (Which is commonly unneeded featuritis though. So not yet implemented.)