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

⌈⌋ ⎇ branch:  streamtuner2


Diff

Differences From Artifact [6ff6e61c9f]:

To Artifact [c50856b383]:


78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

    # Fetch real `url` on stream access/playback (delay)
    def row(self):
        r = ChannelPlugin.row(self)
        if not r["url"].startswith("http"):
            html = ahttp.get("https://radios.reciva.com/streamer?stationid=%s&streamnumber=0" % r["id"])
            ls = re.findall("""(?:<iframe src=|iframe\()['"]([^'"]+)['"]""", html)
            print ls
            if ls:
                r["url"] = ls[0]
            else:
                log.ERR("No stream found for reciva station #%s", row["id"])
        return r









<







78
79
80
81
82
83
84

85
86
87
88
89
90
91

    # Fetch real `url` on stream access/playback (delay)
    def row(self):
        r = ChannelPlugin.row(self)
        if not r["url"].startswith("http"):
            html = ahttp.get("https://radios.reciva.com/streamer?stationid=%s&streamnumber=0" % r["id"])
            ls = re.findall("""(?:<iframe src=|iframe\()['"]([^'"]+)['"]""", html)

            if ls:
                r["url"] = ls[0]
            else:
                log.ERR("No stream found for reciva station #%s", row["id"])
        return r