22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#
#
# A modern alternative to ShoutCast/ICEcast.
# Streams are user-contributed, but often lack
# meta data (homepage) and there's no ordering
# by listeneres/popularity.
#
# OTOH it's every easy to interface with. Though
# the repeated API queries due to only 10 entries
# per query results make fetching slow.
import re
import json
from config import conf, dbg, __print__
from channels import *
import ahttp as http
|
|
|
|
>
>
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#
#
# A modern alternative to ShoutCast/ICEcast.
# Streams are user-contributed, but often lack
# meta data (homepage) and there's no ordering
# by listeneres/popularity.
#
# However it's every easy and stable to interface
# with over JSON. However it's also somewhat slow,
# because each query result has only 10 entries.
# Which is why reloading takes a few seconds to
# collect 200 station entries (see main options).
import re
import json
from config import conf, dbg, __print__
from channels import *
import ahttp as http
|