Skip to content

Commit

Permalink
shoutcast: Cleanup unused variables
Browse files Browse the repository at this point in the history
getGenreList() is being called without arguments.
  • Loading branch information
Hains authored and littlesat committed Dec 7, 2024
1 parent 3fb0b25 commit 6691832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shoutcast/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ def getFavoriteList(self, favoriteListIndex=0):
self["list"].moveToIndex(favoriteListIndex)
self["list"].show()

def getGenreList(self, genre="all", id=0):
def getGenreList(self):
self["headertext"].setText("")
self["statustext"].setText(_("Getting SHOUTcast genre list..."))
self["list"].hide()
if len(devid) > 8:
url = self.SC + "/genre/secondary?parentid=%s&k=%s&f=xml" % (id, devid)
url = self.SC + "/genre/secondary?parentid=%s&k=%s&f=xml" % (0, devid)
else:
url = "http://207.200.98.1/sbin/newxml.phtml"
sendUrlCommand(url, 10).addCallback(content).addCallback(self.callbackGenreList).addErrback(self.callbackGenreListError)
Expand Down

0 comments on commit 6691832

Please sign in to comment.