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

⌈⌋ branch:  streamtuner2


Check-in [0da57ffc3f]

Overview
Comment:Support multiple page requests (needs rework).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0da57ffc3f4523f5e2af7d7b3d10e96c0516410a
User & Date: mario on 2015-12-26 00:44:21
Other Links: manifest | tags
Context
2015-12-26
00:52
Configurable number of maximum result pages for RadioTime API. check-in: 26d85bbcf7 user: mario tags: trunk
00:44
Support multiple page requests (needs rework). check-in: 0da57ffc3f user: mario tags: trunk
2015-12-21
01:38
Add links to additional channel modules check-in: 220cf71c8c user: mario tags: trunk
Changes

Modified channels/tunein.py from [ed1a42d71d] to [8c2aceee6b].

80
81
82
83
84
85
86
87
88
89
90

91
92








93
94
95
               "playing": row.get("subtext", ""),
               "favicon": row.get("image", None),
            })
        return r


    # Fetch OPML, convert outline elements to dicts
    def api(self, method):
        r = []
        opml = ahttp.get(self.base + method)
        x = ElementTree.fromstring(opml)

        for outline in x.findall(".//outline"):
            r.append(dict(outline.items()))








        return r









|

|

>

|
>
>
>
>
>
>
>
>



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
               "playing": row.get("subtext", ""),
               "favicon": row.get("image", None),
            })
        return r


    # Fetch OPML, convert outline elements to dicts
    def api(self, method, url=None):
        r = []
        opml = ahttp.get(url or self.base + method)
        x = ElementTree.fromstring(opml)
        # append entries
        for outline in x.findall(".//outline"):
            outline = dict(outline.items())
            # additional pages
            if "key" in outline and outline["key"] == "nextStations":
                if len(x) < conf.max_streams:
                    r = r + self.api(method=None, url=outline["URL"])
                else:
                    pass
            else:
                r.append(outline)
        return r