Check-in [b8fcd3c3e0]
Overview
Comment: | Made RadioTray fallback `play` available as option instead of bookmarking. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b8fcd3c3e03354cc988946093700a6c2 |
User & Date: | mario on 2015-03-31 19:25:15 |
Other Links: | manifest | tags |
Context
2015-03-31
| ||
19:26 | Add basic menu_label= manually (GtkBuilder option seems to have no effect, only populates tab_label= with child widget.) check-in: 193527df2c user: mario tags: trunk | |
19:25 | Made RadioTray fallback `play` available as option instead of bookmarking. check-in: b8fcd3c3e0 user: mario tags: trunk | |
19:24 | Moved load_theme() into uikit. check-in: 964bb06ce1 user: mario tags: trunk | |
Changes
Modified channels/radiotray.py from [c44c4140ac] to [9e37f7f352].
1 2 3 4 5 6 7 8 | # api: dbus # title: RadioTray hook # description: Allows to bookmark stations to RadioTray # version: 0.3 # type: feature # category: bookmarks # depends: deb:python-dbus, deb:streamtuner2, deb:python-xdg # config: | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # api: dbus # title: RadioTray hook # description: Allows to bookmark stations to RadioTray # version: 0.3 # type: feature # category: bookmarks # depends: deb:python-dbus, deb:streamtuner2, deb:python-xdg # config: # { name: radiotray_map, type: select, value: "group", select: 'root|group|asis|play', description: 'Map genres to default RadioTray groups, or just "root".' } # url: http://radiotray.sourceforge.net/ # priority: extra # id: streamtuner2-radiotray # pack: radiotray.py # fpm-prefix: /usr/share/streamtuner2/channels/ # # Adds a context menu "Keep in RadioTray.." for bookmarking. |
︙ | ︙ | |||
111 112 113 114 115 116 117 118 119 120 121 122 123 124 | # match genre to RT groups def map_group(self, genre): if not genre or not len(genre) or conf.radiotray_map == "root": return "root" if conf.radiotray_map == "asis": return genre # if RadioTray itself can map arbitrary genres to its folders map = { "Jazz": "jazz|fusion|swing", "Pop / Rock": "top|pop|rock|metal", "Latin": "latin|flamenco|tango|salsa|samba", "Classical": "classic|baroque|opera|symphony|piano|violin", "Oldies": "20s|50s|60s|70s|oldie", "Chill": "chill|easy|listening", | > > | 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | # match genre to RT groups def map_group(self, genre): if not genre or not len(genre) or conf.radiotray_map == "root": return "root" if conf.radiotray_map == "asis": return genre # if RadioTray itself can map arbitrary genres to its folders if conf.radiotray_map == "play": raise NotImplementedError("just call .playUrl()") map = { "Jazz": "jazz|fusion|swing", "Pop / Rock": "top|pop|rock|metal", "Latin": "latin|flamenco|tango|salsa|samba", "Classical": "classic|baroque|opera|symphony|piano|violin", "Oldies": "20s|50s|60s|70s|oldie", "Chill": "chill|easy|listening", |
︙ | ︙ |