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

βŒˆβŒ‹ βŽ‡ branch:  streamtuner2


Check-in [b7e5457c6e]

Overview
Comment:Add pq.find() and log.ERR to `pq` wrapper module.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b7e5457c6ed4d322bba9a93d06ce6ae2416ed36e
User & Date: mario on 2020-05-11 18:16:09
Other Links: manifest | tags
Context
2020-05-11
18:21
Listenlive.eu is gone as well. check-in: ce9cfc68b0 user: mario tags: trunk
18:16
Add pq.find() and log.ERR to `pq` wrapper module. check-in: b7e5457c6e user: mario tags: trunk
18:08
Move and delete delicast/streamlicensing channels. check-in: 328c3ac5fa user: mario tags: trunk
Changes

Modified contrib/housemixes.py from [1b91e8da1a] to [60f4ff2e4d].

84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
            self.status(float(i) / max)
            if html.find("latest/" + str(i)):
                html = html + ahttp.get(self.base_url + self.catmap[cat] + "/latest/%s" % i)
        html = re.sub("</body>.+?<body>", "", html, 100, re.S)
        self.status("Extracting mixes…")
        
        # extract
        for card in [pq(e) for e in pq(html)(".card-audio")]:
            r = {
                "title": card(".card-audio-title span").text(),
                "playing": card(".card-audio-user a").text(),
                "genre": card(".card-tags a span").text(),
                # url will be substitute later
                "url": self.base_url + card(".audio-image-link").attr("href"),
                "homepage": self.base_url + card(".audio-image-link").attr("href"),







|







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
            self.status(float(i) / max)
            if html.find("latest/" + str(i)):
                html = html + ahttp.get(self.base_url + self.catmap[cat] + "/latest/%s" % i)
        html = re.sub("</body>.+?<body>", "", html, 100, re.S)
        self.status("Extracting mixes…")
        
        # extract
        for card in [pq(e) for e in pq(html).find(".card-audio")]:
            r = {
                "title": card(".card-audio-title span").text(),
                "playing": card(".card-audio-user a").text(),
                "genre": card(".card-tags a span").text(),
                # url will be substitute later
                "url": self.base_url + card(".audio-image-link").attr("href"),
                "homepage": self.base_url + card(".audio-image-link").attr("href"),

Modified pq.py from [9ad9a3d426] to [42781be023].

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
except Exception as e:

    # disable use
    pq = None
    config.conf.pyquery = False

    # error hint
    print("LXML is missing\n", e)
    print("\n")
    print("Please install the packages python-lxml and python-pyquery from your distributions software manager.\n")


    # let's invoke packagekit?
    """
    try:
         import packagekit.client
         pkc = packagekit.client.PackageKitClient()







|
<
|







22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37
except Exception as e:

    # disable use
    pq = None
    config.conf.pyquery = False

    # error hint
    config.log.ERR("LXML is missing\n", e)

    config.log.ERR("Please install the packages python-lxml and python-pyquery from your distributions software manager.\n")


    # let's invoke packagekit?
    """
    try:
         import packagekit.client
         pkc = packagekit.client.PackageKitClient()