I am hosting the SoundCloud plugin, and have made changes to it.
However, I am not the original author, and Perl is not my speciality. In
this case, I am sure why certain things go wrong. 

First of all, SoundCloud changed something in there API, and the list of
friends is now returned as part of a collection. This can easily be
fixed by changing Plugin.pm line 670 from "for my $entry (@$json) {" to

Code:
--------------------
    
  for my $entry (@{$json->{'collection'}}) {
  
--------------------


This adds the list of friends again. However, clicking on a friend
always displays the same friend. And here is where my Perl knowledge
fails me. If I read the code correctly, each of the items under a friend
should call the tracksHandler with type friend and parser parseFriend.
Clicking on a friend, however, first calls parseFriend*s* -twice- with
limit=0 and and offset for which friend is chosen. This would have
worked, however, the offset paramater is now ignored by the SoundCloud
API, and one of the friends is returned. (And this is why clicking on
all friends always displays the same friend).
I have no idea why is would not directly call parseFriend with the
correct ID for each friend, but call parseFriends twice with an offset
parameter.

If anyone knows a lot of Perl and can look at the code to give some
hints, I can change the plugin again.

Source code can be viewed at
https://github.com/danielvijge/SqueezeCloud/blob/master/Plugin.pm



My patch: 'Reduce brightness when screen saver is active'
(http://server.vijge.net/squeezebox/) for Touch
Source code: 'GitHub' (https://github.com/danielvijge) for SqueezeCloud
and YouTube (old version)
------------------------------------------------------------------------
505's Profile: http://forums.slimdevices.com/member.php?userid=44967
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to