Check-in [2b60750fdf]
Overview
| Comment: | Optional homepage querying, stripping musicgoal stream_urls. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
2b60750fdf46519159f7418a8609b4ca |
| User & Date: | mario on 2014-08-05 02:42:23 |
| Other Links: | manifest | tags |
Context
|
2014-08-12
| ||
| 16:41 | Use r"" string for literal ANSI escapes check-in: 0cb24d59af user: mario tags: trunk | |
|
2014-08-05
| ||
| 02:42 | Optional homepage querying, stripping musicgoal stream_urls. check-in: 2b60750fdf user: mario tags: trunk | |
| 02:39 | Ah, Shoutcast, switching again. → HTML extraction is now JS lexing → {genreid:} is now {genrename:} check-in: 4836962bd4 user: mario tags: trunk | |
Changes
Modified channels/dirble.py from [0d33a5ff54] to [e316404f38].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | - + + + + | # encoding: UTF-8 # api: streamtuner2 # title: Dirble # description: New open radio station directory. |
| ︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 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 111 112 113 114 115 116 117 118 119 120 | + - + + - + - + + + + + + - + - - - - + + + + + + + + + |
"description": "Also fetch homepages when updating stations. (This is slow, as it requires one extra request for each.)"
}
]
catmap = {}
base = "http://api.dirble.com/v1/%s/apikey/%s/"
cid = "84be582567ff418c9ba94d90d075d7fee178ad60"
# Retrieve cat list and map
def update_categories(self):
self.categories = []
# Main categories
for row in self.api("primaryCategories"):
self.categories.append(row["name"])
self.catmap[row["name"]] = row["id"]
# Request subcats
sub = []
self.categories.append(sub)
|