Check-in [86cac0312e]
Overview
Comment: | Switch .meta.title attribute after UI initialization. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
86cac0312e19bdbfe0c61ffffc2b1f0a |
User & Date: | mario on 2015-04-05 18:24:19 |
Other Links: | manifest | tags |
Context
2015-04-05
| ||
18:24 | Make Youtube channel also default. check-in: 333ed92349 user: mario tags: trunk | |
18:24 | Switch .meta.title attribute after UI initialization. check-in: 86cac0312e user: mario tags: trunk | |
18:23 | Fix `local` category base url, again. Make priority: default. check-in: 76b83cd1e1 user: mario tags: trunk | |
Changes
Modified channels/surfmusik.py from [9e4623f402] to [48d1f40b6c].
1 2 | # encoding: UTF-8 # api: streamtuner2 | | | 1 2 3 4 5 6 7 8 9 10 | # encoding: UTF-8 # api: streamtuner2 # title: SurfMusic # description: User collection of streams categorized by region and genre. # author: gorgonz123 # version: 0.5 # type: channel # category: radio # config: # { name: surfmusik_lang, value: EN, type: select, select: "DE=German|EN=English", description: "Switching to a new category title language requires reloading the category tree.", category: language } |
︙ | ︙ | |||
55 56 57 58 59 60 61 62 | } categories = [] titles = dict( genre="Genre", title="Station", playing="Location", bitrate=False, listeners=False ) # Set channel title def __init__(self, parent=None): self.title = ("SurfMusik", "SurfMusic")[conf.get("surfmusik_lang", "EN") == "EN"] | > > | | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | } categories = [] titles = dict( genre="Genre", title="Station", playing="Location", bitrate=False, listeners=False ) # Set channel title def __init__(self, parent=None): ChannelPlugin.__init__(self, parent) # title updating is a workaround, because the fixed .meta attribute are read first self.title = ("SurfMusik", "SurfMusic")[conf.get("surfmusik_lang", "EN") == "EN"] self.meta["title"] = self.title # just a static list for now def update_categories(self): lang = conf.surfmusik_lang (base_url, path_genre, path_country) = self.base[lang] |
︙ | ︙ |