Diff
Differences From Artifact [60212d55e2]:
- File channels/somafm.py — part of check-in [3f1b3bd882] at 2015-05-02 05:44:27 on branch trunk — Fix `audioformat` property name. (user: mario, size: 9067) [annotate] [blame] [check-ins using]
To Artifact [ff62835ca5]:
- File channels/somafm.py — part of check-in [d0a9fca2bd] at 2015-05-06 00:07:54 on branch trunk — Fix some print and log statements. (user: mario, size: 9071) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
101 102 103 104 105 106 107 |
<p.*?>(.+?)</p> .*?
href="(http://somafm.com/.+?.pls)" .*?
""", html, re.X|re.S)
rows = [
dict(genre=g, title=t, playing=p, url=u, listeners=int(l), bitrate=128, homepage=re.sub("\d*\.pls$", "/", u))
for l,g,t,p,u in ls
]
| | | 101 102 103 104 105 106 107 108 109 110 |
<p.*?>(.+?)</p> .*?
href="(http://somafm.com/.+?.pls)" .*?
""", html, re.X|re.S)
rows = [
dict(genre=g, title=t, playing=p, url=u, listeners=int(l), bitrate=128, homepage=re.sub("\d*\.pls$", "/", u))
for l,g,t,p,u in ls
]
#log.DATA(rows)
return rows
|