Check-in [4f6de091f1]
Overview
Comment: | Disable logging for google_homepage |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4f6de091f18afce14ffc5af7e695f175 |
User & Date: | mario on 2016-04-18 23:56:26 |
Other Links: | manifest | tags |
Context
2016-05-05
| ||
16:28 | Minor documentation updates, add vTuner/RadioSure/Receiva in contrib plugin list. check-in: d0c84513d6 user: mario tags: trunk | |
2016-04-18
| ||
23:56 | Disable logging for google_homepage check-in: 4f6de091f1 user: mario tags: trunk | |
2016-04-17
| ||
23:54 | Fix google_homepage regex, filter out tunein+streema urls. check-in: 86ef3aaa35 user: mario tags: trunk | |
Changes
Modified channels/favicon.py from [de8c98b1c8] to [09f6bbd70b].
︙ | ︙ | |||
246 247 248 249 250 251 252 | # Use literal station title now title = row["title"] #title = title.group(0).replace(" ", "%20") # Do 'le google search html = ahttp.get("http://www.google.com/search", params=dict(hl="en", q=title, client="streamtuner2"), ajax=1, timeout=3.5) | | | | 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | # Use literal station title now title = row["title"] #title = title.group(0).replace(" ", "%20") # Do 'le google search html = ahttp.get("http://www.google.com/search", params=dict(hl="en", q=title, client="streamtuner2"), ajax=1, timeout=3.5) #log.DATA(re.sub("<(script|style)[^>]*>.*?</(script|style)>", "", html, 100, re.S)) # Find first URL hit url = rx_u.findall(html) if url: #log.DATA(url) row["homepage"] = ahttp.fix_url(url[0]) return True pass #----------------- |
︙ | ︙ |