Commit 4fa24a83 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Fix playlist count (+1) in root dir, to account for radios

parent bd3de898
...@@ -108,7 +108,7 @@ class Playlists(object): ...@@ -108,7 +108,7 @@ class Playlists(object):
# Return entry to be created in the top-level directory ([playlists]). # Return entry to be created in the top-level directory ([playlists]).
def rootentries(self, pid): def rootentries(self, pid):
return [direntry(pid + 'playlists', pid, return [direntry(pid + 'playlists', pid,
str(len(self.utidx) - 1) + ' playlists'),] str(len(self.utidx)) + ' playlists'),]
def radioToEntry(self, pid, idx, radio): def radioToEntry(self, pid, idx, radio):
title = radio[0] title = radio[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment