Check-in [08803f2b56]
Overview
| Comment: | Add duplicate filter for Xiph. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
08803f2b563222c60b6ca66be9015d9e |
| User & Date: | mario on 2020-05-11 16:24:20 |
| Other Links: | manifest | tags |
Context
|
2020-05-11
| ||
| 16:34 | Fix for radionet station/player page change `"streamUrl":` to `"streams":[{"url":` check-in: 059815af7b user: mario tags: trunk | |
| 16:24 | Add duplicate filter for Xiph. check-in: 08803f2b56 user: mario tags: trunk | |
| 16:23 | Fix for new url prefix in station list. check-in: 80b73f490d user: mario tags: trunk | |
Changes
Modified channels/xiph.py from [cff583b758] to [5e8e93fcb4].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | - + + | # encoding: UTF-8 # api: streamtuner2 # title: Xiph.org # description: ICEcast radios. Scans per JSON API, slow XML, or raw directory. # type: channel # url: http://dir.xiph.org/ |
| ︙ | |||
185 186 187 188 189 190 191 | 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | - + - + |
# uncover station homepages.
#@use_rx
def from_raw_html(self, cat, search=None, use_rx=False):
# Build request URL
by_format = {t.lower(): t for t in self.categories[-1]}
if search:
|
| ︙ | |||
240 241 242 243 244 245 246 | 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | + + + + + - + + + + + + + + + + |
listformat = "srv",
listeners = to_int(ls["listeners"]),
bitrate = 0, #bitrate(ls["bits"]),
format = mime_fmt(guess_format(ls["fmt"])),
tags = unhtml(ls["tags"])
))
#log.DATA(r)
return self.filter_duplicates(r)
# strip entries by title+playing from Xiph BETA result list
def filter_duplicates(self, entries):
if "xiph_filter" not in conf or not int(conf.xiph_filter):
|
| ︙ |