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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [56320c8678]

Overview
Comment:iCast currently(?) down. Added JSON/HTTP log.ERR message.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 56320c8678477420887151ea9ccb8f2188798d12
User & Date: mario on 2015-04-30 00:45:17
Other Links: manifest | tags
Context
2015-04-30
00:46
Applied listformat= testing via action.extract_playlist.probe_ext(). check-in: 7dc72d064e user: mario tags: trunk
00:45
iCast currently(?) down. Added JSON/HTTP log.ERR message. check-in: 56320c8678 user: mario tags: trunk
00:44
Moved artwork (logo/icon) into dev/ folder. check-in: cff3740941 user: mario tags: trunk
Changes

Modified channels/icast.py from [2c4e5b4f8f] to [4ac23a2b45].

80
81
82
83
84
85
86


87



88
89
90
91
92
93
94
95
96

        return r

    # fetch multiple pages
    def api(self, method, path, params):
        r = []
        while len(r) < int(conf.max_streams):


            data = json.loads(ahttp.get( self.base + method + path, params))



            r += data["stations"]
            if len(r) >= data["meta"]["total_count"] or len(data["stations"]) < 10:
                break
            else:
                params["page"] = int(data["meta"]["current_page"]) + 1
                self.parent.status(params["page"] * 9.5 / float(conf.max_streams))
            #log.DATA(data)
        return r








>
>
|
>
>
>









80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

        return r

    # fetch multiple pages
    def api(self, method, path, params):
        r = []
        while len(r) < int(conf.max_streams):
            try:
                data = ahttp.get(self.base + method + path, params)
                data = json.loads(data)
            except Exception as e:
                log.ERR("No data/json received.", e)
                return r
            r += data["stations"]
            if len(r) >= data["meta"]["total_count"] or len(data["stations"]) < 10:
                break
            else:
                params["page"] = int(data["meta"]["current_page"]) + 1
                self.parent.status(params["page"] * 9.5 / float(conf.max_streams))
            #log.DATA(data)
        return r