Differences From
Artifact [d31231b5cf]:
Also attachment "tunein.py" to
ticket [
4163057c37]
added by
joostden on
2020-04-13 15:33:08.
︙ | | | ︙ | |
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 len(r) < conf.max_streams and max > 0:
next = outline["URL"]
max = max - 1
else:
r.append(outline)
return r
|
|
|
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
|