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-27 21:38:02 and 2015-05-11 21:17:18

60
61
62
63
64
65
66
67
68
69
70
71

72
73
74
75
76
77
78
79
80
81

82
83
84
85
86
87
88
60
61
62
63
64
65
66

67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89







-




+










+







      * <kbd>genre</kbd> - the category name
      * <kbd>title</kbd> - station title
      * <kbd>url</kbd> - streaming url (to pls or m3u resource)
      * <kbd>playing</kbd> - currently playing song, if any
      * <kbd>homepage</kbd> - station homepage
      * <kbd>bitrate</kbd> - (int) audio bitrate (like 128)
      * <kbd>listeners</kbd> - (int) number of listeners
      * <kbd>favicon</kbd> - url to favicon, if any
      * <kbd>format</kbd> - to set a custom audio format (audio/ogg)

   * Internal fields are: 

      * <kbd>favicon</kbd> - path to localized favicon, either from <kbd>homepage</kbd> or <kbd>img</kbd> url
      * <kbd>state</kbd> - a gtk icon
      * <kbd>deleted</kbd> - strikethrough for deleted entries
      * <kbd>favourite</kbd> - add a star for bookmarked stations
      * <kbd>search_col</kbd> - search color
      * <kbd>search_set</kbd> - search state

   * With a `datamap=[]` declaration custom field names could be displayed.

   * Often you just want to rename the column titles however - per `title=dict(listeners="Whatever")` in the class declaration.

You can add any additional fields of your choosing.

### streams = {}

Received station lists get stored internally in a `streams={"Pop":[...]}` dict, and cached in the `~/.config/streamtuner2/cache/` directory of course.

### conf. options