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

⌈⌋ ⎇ branch:  streamtuner2


Diff

Differences From Artifact [87b3a20dac]:

To Artifact [ac7d64a717]:


61
62
63
64
65
66
67



68
69
70
71
72
73
74
            self.categories.append(c[1])


    # fetchy fetch
    def update_streams(self, cat):
        entries = []
        html = ahttp.get(self.base_url % (self.catmap[cat.lower()], conf.max_streams))



        
        # extract
        for row in (pq(row) for row in pq(html).find("#mytable").find(".oddrow, .evenrow")):
            u = row.find(".streamlink")
            if u:
                id = re.findall("(\d+)", u.attr("href"))[0]
                entries.append({







>
>
>







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
            self.categories.append(c[1])


    # fetchy fetch
    def update_streams(self, cat):
        entries = []
        html = ahttp.get(self.base_url % (self.catmap[cat.lower()], conf.max_streams))
        if not html:
            log.ERR("No results from http://radios.reciva.com/ server. Their category browsing sometimes breaks. We're not using the search function as that would strain their server too much. You might try adding login credentials to `.netrc` - albeit that rarely helps.", html)
            return []
        
        # extract
        for row in (pq(row) for row in pq(html).find("#mytable").find(".oddrow, .evenrow")):
            u = row.find(".streamlink")
            if u:
                id = re.findall("(\d+)", u.attr("href"))[0]
                entries.append({