Diff
Differences From Artifact [f6c4524b4e]:
- File channels/punkcast.py — part of check-in [493be36226] at 2015-04-29 22:55:24 on branch trunk — Exchanged all "import ahttp as http" for plain `ahttp` module usage. (user: mario, size: 3417) [annotate] [blame] [check-ins using]
- File contrib/punkcast.py — part of check-in [d91ab221b3] at 2015-05-05 14:27:27 on branch trunk — Moved `file` and `punkcast` into contrib/ group. (user: mario, size: 3417) [annotate] [blame] [check-ins using]
To Artifact [f8b9acfb69]:
- File contrib/punkcast.py — part of check-in [2335ea7a46] at 2015-05-13 00:00:39 on branch trunk — Move mime_fmt() into regular function. Fix live365 ahttp feedback= bug. Regroup functions and update a few comments in channels/__init__ (user: mario, size: 3412) [annotate] [blame] [check-ins using]
79 80 81 82 83 84 85 | rx_sound = re.compile("""(http://[^"<>]+[.](mp3|ogg|m3u|pls|ram))""") html = ahttp.get(row["homepage"]) # look up ANY audio url for uu in rx_sound.findall(html): log.DATA( uu ) (url, fmt) = uu | | | 79 80 81 82 83 84 85 86 87 88 89 90 91 | rx_sound = re.compile("""(http://[^"<>]+[.](mp3|ogg|m3u|pls|ram))""") html = ahttp.get(row["homepage"]) # look up ANY audio url for uu in rx_sound.findall(html): log.DATA( uu ) (url, fmt) = uu action.play(url, mime_fmt(fmt), "srv") return # or just open webpage action.browser(row["homepage"]) |