Check-in [06514f3645]
Overview
| Comment: | Add DBUS play_url() support with `play` option. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
06514f3645a74c2115bb1e5f4900060b |
| User & Date: | mario on 2018-12-31 11:42:19 |
| Other Links: | manifest | tags |
Context
|
2018-12-31
| ||
| 19:44 | 2.2.1 check-in: a9da736771 user: mario tags: trunk | |
| 11:42 | Add DBUS play_url() support with `play` option. check-in: 06514f3645 user: mario tags: trunk | |
| 11:33 | Release as 2.2.1 check-in: 2877d4a4bb user: mario tags: trunk, 2.2.1 | |
Changes
Modified channels/radiotray.py from [d06646c6dc] to [1d0d5fe309].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + | # encoding: utf-8 # api: streamtuner2 # title: RadioTray hook # description: Allows to bookmark stations to RadioTray/NG |
| ︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | - + | # # The mapping options: # ยท "root" is just meant for the old Radiotray format. # ยท "group" tries to fit genres onto existing submenus. # ยท "category" maps just the channel category. # ยท "channel" instead creates `Shoutcast - Rock` entries. # ยท "asis" will transfer the literal station genre. |
| ︙ | |||
137 138 139 140 141 142 143 | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | + + + - + |
row = self.parent.row()
if row:
group = self.map_group(row.get("genre", self.parent.channel().current))
log.PROC("mapping genre '%s' to RT group '%s'" % (row["genre"], group))
# Radiotray-NG
try:
if conf.radiotry_map == "play":
self.radiotray_ng().play_url(row["url"])
else:
|
| ︙ |