begin the refactoring - doesnt compile
This commit is contained in:
@@ -23,17 +23,3 @@ func NewLibraryManager(s *ServerManager) *LibraryManager {
|
||||
s: s,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *LibraryManager) GetUserOwnedPlaylists() ([]*subsonic.Playlist, error) {
|
||||
pl, err := l.s.Server.GetPlaylists(nil)
|
||||
userPl := make([]*subsonic.Playlist, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for _, p := range pl {
|
||||
if p.Owner == l.s.Server.User {
|
||||
userPl = append(userPl, p)
|
||||
}
|
||||
}
|
||||
return userPl, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user