Check-in [051366205f]
Overview
Comment: | Undo itertools.chain(), use plain list appending. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
051366205fd530c9f890bfd640a44399 |
User & Date: | mario on 2015-04-29 22:59:12 |
Other Links: | manifest | tags |
Context
2015-04-30
| ||
00:44 | Moved artwork (logo/icon) into dev/ folder. check-in: cff3740941 user: mario tags: trunk | |
2015-04-29
| ||
22:59 | Undo itertools.chain(), use plain list appending. check-in: 051366205f user: mario tags: trunk | |
22:55 | Exchanged all "import ahttp as http" for plain `ahttp` module usage. check-in: 493be36226 user: mario tags: trunk | |
Changes
Modified channels/ubuntuusers.py from [47104e67ff] to [d59a32fd62].
︙ | ︙ | |||
59 60 61 62 63 64 65 | 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 | | | < > > | 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 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""" |
︙ | ︙ |