1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# encoding: UTF-8
# api: streamtuner2
# title: Dirble
# description: Open radio station directory.
# version: 0.2
# type: channel
# category: radio
# priority: optional
# documentation: http://dirble.com/developer/api
#
# Provides a nice JSON API, so is easy to support.
#
# However useful station information (homepage, etc.) only
# with extraneous requests. So just for testing as of now.
#
|
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# encoding: UTF-8
# api: streamtuner2
# title: Dirble
# description: Open radio station directory.
# version: 0.2
# type: channel
# category: radio
# config:
# { name: dirble_api_key, value: "", type: text, description: Custom API access key. },
# { name: dirble_fetch_homepage, value: 0, type: boolean, description: Also fetch homepages when updating stations. (Rather slow.) }
# priority: optional
# url: http://dirble.com/
# documentation: http://dirble.com/developer/api
#
# Provides a nice JSON API, so is easy to support.
#
# However useful station information (homepage, etc.) only
# with extraneous requests. So just for testing as of now.
#
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Surfmusik sharing site
class dirble (ChannelPlugin):
# description
title = "Dirble"
module = "dirble"
homepage = "http://dirble.com/"
has_search = True
listformat = "audio/x-scpls"
titles = dict(listeners=False, playing="Location")
categories = []
config = [
{"name": "dirble_api_key",
"value": "",
"type": "text",
"description": "Custom API access key."
},
{"name": "dirble_fetch_homepage",
"value": 0,
"type": "boolean",
"description": "Also fetch homepages when updating stations. (This is super slow, as it requires one extra request for each station.)"
}
]
catmap = {}
base = "http://api.dirble.com/v1/%s/apikey/%s/"
cid = "a0bdd7b8efc2f5d1ebdf1728b65a07ece4c73de5"
# Retrieve cat list and map
|
<
<
<
<
<
<
<
<
<
<
<
<
<
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Surfmusik sharing site
class dirble (ChannelPlugin):
# description
title = "Dirble"
module = "dirble"
has_search = True
listformat = "audio/x-scpls"
titles = dict(listeners=False, playing="Location")
categories = []
catmap = {}
base = "http://api.dirble.com/v1/%s/apikey/%s/"
cid = "a0bdd7b8efc2f5d1ebdf1728b65a07ece4c73de5"
# Retrieve cat list and map
|