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

⌈⌋ ⎇ branch:  streamtuner2


Diff

Differences From Artifact [3b96ae1b61]:

To Artifact [a30ec4e248]:


118
119
120
121
122
123
124



125
126
127
    def api(self, *params):
        method = params[0]
        try:
            j = http.get((self.base % (method, conf.dirble_api_key or self.cid)) + "/".join([str(e) for e in params[1:]]))
            r = json.loads(j);
        except:
            r = []



        return r









>
>
>



118
119
120
121
122
123
124
125
126
127
128
129
130
    def api(self, *params):
        method = params[0]
        try:
            j = http.get((self.base % (method, conf.dirble_api_key or self.cid)) + "/".join([str(e) for e in params[1:]]))
            r = json.loads(j);
        except:
            r = []
        if len(r) and "errormsg" in r[0]:
          __print__(dbg.ERR, r[0]["errormsg"]) 
          r = []
        return r