-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Getting the following exception:
daz@iloveyou:~/metadata$ python metadata.py
Traceback (most recent call last):
File "metadata.py", line 1, in
from streamscrobbler import streamscrobbler
File "/home/daz/metadata/streamscrobbler.py", line 5
^
Here is my code:
from streamscrobbler import streamscrobbler
streamscrobbler = streamscrobbler()
##streamurl can be a url directly to the stream or to a pls file. Support for m3u is coming soon.
streamurl = "http://pubint.ic.llnwd.net/stream/pubint_kut"
stationinfo = streamscrobbler.getServerInfo(streamurl)
##metadata is the bitrate and current song
metadata = stationinfo.get("metadata")
## status is the integer to tell if the server is up or down, 0 means down, 1 up, 2 means up but also got metadata.
status = stationinfo.get("status")
Metadata
Metadata
Assignees
Labels
No labels