Skip to content

Commit

Permalink
Working well. Now to add the ability to find what the station is play…
Browse files Browse the repository at this point in the history
…ing using shoutcast
  • Loading branch information
meuse committed May 12, 2013
1 parent f02d90b commit abab226
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
Binary file modified .cluster_module.py.swp
Binary file not shown.
Binary file added .shoutcast_wrapper.py.swp
Binary file not shown.
3 changes: 2 additions & 1 deletion cluster_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def getPlayingStations(self, artist):
itemId = item[2]
itemName = item[0]
itemLC = item[1]
itemCT = item[3]

#if the station is already in the list, change
#status to playing
Expand All @@ -136,7 +137,7 @@ def getPlayingStations(self, artist):
#else append the station to the top of the list
#and add the station to the db
else:
mergelist.insert(0, (itemId, itemName, True))
mergelist.insert(0, (itemId, itemName, True, itemCT))
db.addStationForArtist(artist, (itemName, itemId, itemLC))

#get set of artists for each station
Expand Down
Binary file modified cluster_module.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion shoutcast_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def getStationPlayingArtist(self, artist):
stationDictList = data['response']['data']['stationlist']['station']

for item in stationDictList:
stationList.append((item['name'], item['lc'], item['id']))
stationList.append((item['name'], item['lc'], item['id'], item['ct']))


except Exception as e:
Expand Down
Binary file modified shoutcast_wrapper.pyc
Binary file not shown.

0 comments on commit abab226

Please sign in to comment.