Check-in [d9e9441d2d]
Overview
Comment: | shoutcast parsing patch from Vincent |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
d9e9441d2dd40709135a812c998c0a86 |
User & Date: | mario on 2012-01-10 03:54:34 |
Other Links: | manifest | tags |
Context
2012-01-12
| ||
14:39 | (no comment) check-in: ff3473b8ec user: mario tags: trunk | |
2012-01-10
| ||
03:54 | shoutcast parsing patch from Vincent check-in: d9e9441d2d user: mario tags: trunk | |
03:49 | minor gui tweaks check-in: f2592fc1e4 user: mario tags: trunk | |
Changes
Modified channels/shoutcast.py from [8bd878f25d] to [f74abd4786].
︙ | ︙ | |||
168 169 170 171 172 173 174 | # PyQuery parsing else: # iterate over DOM for div in (pq(e) for e in pq(html).find("div.dirlist")): entries.append({ | > > > > | | | | | 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | # PyQuery parsing else: # iterate over DOM for div in (pq(e) for e in pq(html).find("div.dirlist")): entries.append({ "title": div.find("a.playbutton,a.playbutton1").attr("title"), "url": div.find("a.playbutton,a.playbutton1").attr("href"), "homepage": http.fix_url(div.find("a.div_website").attr("href")), "playing": div.find("div.playingtext").attr("title"), # "title": div.find("a.clickabletitleGenre, div.stationcol a").attr("title"), # "url": div.find("a.playbutton, a.playbutton1, a.playimage").attr("href"), # "homepage": http.fix_url(div.find("a.playbutton.clickabletitle, a[target=_blank], a.clickabletitleGenre, a.clickabletitle, div.stationcol a, a").attr("href")), # "playing": div.find("div.playingtextGenre, div.playingtext").attr("title"), "listeners": int(div.find("div.dirlistners").text()), "bitrate": int(div.find("div.dirbitrate").text()), "format": self.mime_fmt(div.find("div.dirtype").text()), "max": 0, "genre": cat, # "title2": e.find("a.playbutton").attr("name"), }) |
︙ | ︙ |