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

⌈⌋ ⎇ branch:  streamtuner2


Diff

Differences From Artifact [47104e67ff]:

To Artifact [d59a32fd62]:


59
60
61
62
63
64
65
66
67


68


69
70
71
72
73
74
75
59
60
61
62
63
64
65


66
67

68
69
70
71
72
73
74
75
76







-
-
+
+
-
+
+







    def update_streams(self, cat, search=None):

        # fetch page
        wiki = ahttp.get(self.base[cat])
        f = "audio/mpeg" if cat == "stations" else "video/mp4"
        
        # split on headlines
        return itertools.chain(
            self.join(src, f) for src in re.split("^==+", wiki, 0, re.M)
        r = []
        for src in re.split("^==+", wiki, 0, re.M):
        )
            r += self.join(src, f)
        return r


    # Extract individual stations
    def join(self, src, f):
    
        # regexp lists out, just one srv url per entry
        ls = re.findall(r"""