Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Check-in [b4558a4599]

Overview
Comment:Remove plugin #color:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b4558a4599a7742a945e626f60acbdaf16a90f52
User & Date: mario on 2015-05-12 20:03:50
Other Links: manifest | tags
Context
2015-05-12
20:05
Add generic bitrate filter plugin, move functionality out of xiph channel. check-in: 7ef8a2b827 user: mario tags: trunk
20:03
Remove plugin #color: check-in: b4558a4599 user: mario tags: trunk
20:03
Use GenericChannel.prepare_filters hook to update "favicon" filenames in rows. Precompile row_to_fn regexps. Fix google_find_homepage params (just a function, not a method). check-in: 8c0b288e66 user: mario tags: trunk
Changes

Modified channels/radionomy.py from [b2195e3fad] to [df5905438c].

1
2
3
4
5
6
7
8
9
10
11
12
# encoding: UTF-8
# api: streamtuner2
# title: Radionomy
# description: Modern radio directory and streaming provider
# color: #ffcc77
# url: http://radionomy.com/
# version: 0.5
# type: channel
# category: radio
# config: -
#    { name: radionomy_pages,  type: int,  value: 3,  category: limit,  description: Number of pages per category to scan. }
#    { name: radionomy_update,  type: boolean,  value: 1,  description: Also fetch OnAir updates about currently playing songs. }




<







1
2
3
4

5
6
7
8
9
10
11
# encoding: UTF-8
# api: streamtuner2
# title: Radionomy
# description: Modern radio directory and streaming provider

# url: http://radionomy.com/
# version: 0.5
# type: channel
# category: radio
# config: -
#    { name: radionomy_pages,  type: int,  value: 3,  category: limit,  description: Number of pages per category to scan. }
#    { name: radionomy_update,  type: boolean,  value: 1,  description: Also fetch OnAir updates about currently playing songs. }
121
122
123
124
125
126
127
128
129
130


131
132
133
134
135
136
137


    # Retrieve en/OnAir/Update for per-UID song titles
    def onair_update(self, req):
        if conf.radionomy_update:
            try:
                d = json.loads(
                  ahttp.get("https://www.radionomy.com/en/OnAir/Update", post=1, referer=req)
                )
                if d:


                    self.playing.update(
                      {row["RadioUID"]: "{Title} - {Artist}".format(**row) for row in d}
                    )
            except Exception as e:
                log.ERR("Radionomy title update:", e)

                







|

|
>
>
|
|
|




120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138


    # Retrieve en/OnAir/Update for per-UID song titles
    def onair_update(self, req):
        if conf.radionomy_update:
            try:
                d = json.loads(
                    ahttp.get("https://www.radionomy.com/en/OnAir/Update", post=1, referer=req)
                )
                if not d:
                    return
                print d
                self.playing.update(
                    {row["RadioUID"]: "{Title} - {Artist}".format(**row) for row in d}
                )
            except Exception as e:
                log.ERR("Radionomy title update:", e)