Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/icecast/icecast_ | ||
|---|---|---|
| 50 | 50 |
#exclude = ("123.123.123.123",)
|
| 51 | 51 |
exclude = () |
| 52 | 52 |
|
| 53 |
# Exclude these sources from calculation. This is useful to excluse special sources like
|
|
| 53 |
# Exclude these sources from calculation. This is useful to excluse special sources like |
|
| 54 | 54 |
# fallback sources which doesn't expose the same informations and then break this script |
| 55 | 55 |
# Ever add fallback sources to this list |
| 56 | 56 |
#source_exclude = ["/fallback.mp3", "/fallback.ogg"] |
| ... | ... | |
| 141 | 141 |
if plugin_name == "icecast_uptime": |
| 142 | 142 |
for s in sources: |
| 143 | 143 |
print "%s.value %s" % (s["mount"].strip("/").replace(".","_").replace("-","_"), int(s["connected"]) / 3600.)
|
| 144 |
|
|
| 144 |
|
|
| 145 | 145 |
elif plugin_name == "icecast_traffic": |
| 146 | 146 |
f = opener.open("http://%s/admin/stats.xml" % server)
|
| 147 | 147 |
tree = ElementTree() |
Formats disponibles : Unified diff