Check-in [cbd84b656f]
Overview
| Comment: | `timedout` and `description` are seemingly gone from the API responses. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
cbd84b656f88b32fde71fffb6b8e100b |
| User & Date: | mario on 2015-05-15 17:55:37 |
| Other Links: | manifest | tags |
Context
|
2015-05-15
| ||
| 17:58 | Add ahttp.fix_url() for dirble `website` addresses. check-in: 96d86cc203 user: mario tags: trunk | |
| 17:55 | `timedout` and `description` are seemingly gone from the API responses. check-in: cbd84b656f user: mario tags: trunk | |
| 17:49 | Add `filter_bitrate` to default pack: list. check-in: 9a5cee5ac7 user: mario tags: trunk | |
Changes
Modified channels/dirble.py from [8581a994c5] to [d2166f415b].
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - + - + | # encoding: UTF-8 # api: streamtuner2 # title: Dirble # description: Song history tracker for Internet radio stations. # url: http://dirble.com/ |
| ︙ | |||
83 84 85 86 87 88 89 90 91 92 93 94 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | + - + - + |
def unpack(self, r):
# find stream (might select on `bitrate` or `format` if available)
if len(r.get("streams", [])):
s = r["streams"][0]
else:
return {}
print r
# rename fields
return dict(
genre = " ".join(c["slug"] for c in r["categories"]),
title = r["name"],
|
| ︙ |