Check-in [4ac8c4bcb9]
Overview
| Comment: | Fix string-remnant option type error (conf.max_streams comparison) From ticket @4163057c375e |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4ac8c4bcb94b7aa91b493d1c7ae68f63 |
| User & Date: | joostden on 2020-05-04 17:50:12 |
| Other Links: | manifest | tags |
Context
|
2020-05-10
| ||
| 15:17 |
Adapt Xiph plugin for BETA/dir-test.xoph.org rollout. It's fairly terrible:
homepages gone, bitrate unavailable, case-sensitive category segregration.
On the upside: direct streaming server urls.
The 'cache' mode is likely broken soon, since the experimental JSON API is gone. For now using `.title()` on /genre/{} search. Adapted guess_format to recognize AAC. Subtitle is used in lieu of On Air: text for playing= check-in: f9c725e90b user: mario tags: trunk | |
|
2020-05-04
| ||
| 17:50 | Fix string-remnant option type error (conf.max_streams comparison) From ticket @4163057c375e check-in: 4ac8c4bcb9 user: joostden tags: trunk | |
|
2019-07-16
| ||
| 07:48 | Dead-end update for radiolist.net channel (only titles+homepages now). check-in: 215234ddad user: mario tags: trunk | |
Changes
Modified channels/tunein.py from [d31231b5cf] to [3410153f13].
| ︙ | ︙ | |||
96 97 98 99 100 101 102 |
next = None
x = ElementTree.fromstring(opml)
# append entries
for outline in x.findall(".//outline"):
outline = dict(outline.items())
# additional pages
if "key" in outline and outline["key"] == "nextStations":
| | | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
next = None
x = ElementTree.fromstring(opml)
# append entries
for outline in x.findall(".//outline"):
outline = dict(outline.items())
# additional pages
if "key" in outline and outline["key"] == "nextStations":
if int(len(r)) < int(conf.max_streams) and max > 0:
next = outline["URL"]
max = max - 1
else:
r.append(outline)
return r
|