@@ -4,48 +4,41 @@ # description: List recently played stations under favourites > history. # version: 1.0 # type: category # category: ui # priority: optional +# config: { name: history, type: int, value: 20, description: Number of last played streams to keep in history list., category: limit } +# # # Lists last activated streams in a new [history] tab in the favourites # channel. # # # -from config import conf, __print__, dbg +from config import * from channels import * class history: # plugin info module = "history" title = "History" - - - # configuration settings - config = [ - { - "name": "history", - "type": "int", - "value": "20", - "description": "Number of last played streams to keep in history list.", - "category": "limit" - } - ] + meta = plugin_meta() + # store bm = None # hook up to main tab def __init__(self, parent): + self.config = self.meta["config"] # keep reference to main window self.bm = parent.channels["bookmarks"] # create category