Index: channels/radiotray.py ================================================================== --- channels/radiotray.py +++ channels/radiotray.py @@ -4,11 +4,11 @@ # 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', description: 'Map genres to default RadioTray groups, or just "root".' } +# { 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/ @@ -113,10 +113,12 @@ 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",