Diff
Differences From Artifact [3410153f13]:
- File channels/tunein.py — part of check-in [4ac8c4bcb9] at 2020-05-04 17:50:12 on branch trunk — Fix string-remnant option type error (conf.max_streams comparison) From ticket @4163057c375e (user: joostden, size: 5346) [annotate] [blame] [check-ins using]
To Artifact [e947db0e20]:
- File channels/tunein.py — part of check-in [e9c2e9a3a2] at 2020-05-15 19:36:33 on branch trunk — Apply more `self.status(i / pages)` progressbar calls for some channels. (user: mario, size: 5431) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# Fetch OPML, convert outline elements to dicts
def api(self, method):
r = []
# fetch API page
next = self.base + method
max = int(conf.radiotime_maxpages)
while next:
opml = ahttp.get(next)
next = None
x = ElementTree.fromstring(opml)
# append entries
for outline in x.findall(".//outline"):
outline = dict(outline.items())
# additional pages
| > > > | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# Fetch OPML, convert outline elements to dicts
def api(self, method):
r = []
# fetch API page
next = self.base + method
max = int(conf.radiotime_maxpages)
i = 0.1
while next:
self.status(i / (12.5 + max * 0.7))
i += 1.1
opml = ahttp.get(next)
next = None
x = ElementTree.fromstring(opml)
# append entries
for outline in x.findall(".//outline"):
outline = dict(outline.items())
# additional pages
|
| ︙ | ︙ |