Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-09-10 Thread nldroid

mkkyah wrote: 
> I followed your instructions, not working. Tested with 7.8.0 and 7.9

But did you see the message in the log?



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-09-01 Thread nldroid

FireFlash wrote: 
> Unfortunately I did not get it working, even with the
> 'IO::Socket::SSL::set_client_defaults('SSL_verify_mode' => 0x0);' added
> to Squeezebox.pm, I'm still getting [400] HTTP/1.0 400 Bad Request
> errors for any HTTPS URLs with direct streams.   :(

Did you remove the 

$redirector =~ s/https/http/;

placed after 

my $redirector = $res->header( 'location' );

In ProtocolHandler.pm file?



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-28 Thread nldroid

erland wrote: 
> We are trying to find a solution for it for ickStream.

Thanks for the update.



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-26 Thread nldroid

505 wrote: 
> That's the same fix erland posted a page back. I'm trying to work on
> some code to incorporate this into the main plugin. With some setting,
> so you can enable it specifically for the soundcloud plugin if you have
> the problem. But I do not have that much free time to work on it.

I've checked their code and it's possible to add it to the squeezebox
plugin in the same way. Create a new setting on the settings page and
use the option if checked.

I'm not sure if that solves the problems because i cannot try it. My
Ubuntu system doesn't support this option. If FireFlash verifies it
works, i can see if i can add the option to the plugin in the same way
that Erland did.

The fact that it is a global option, comes from the code from Erland:

https://github.com/ickStream/ickstream-service-lms/blob/master/src/main/plugin/strings.txt

Line 119 at the end.



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-26 Thread nldroid

FireFlash wrote: 
> I'm quite a noob with perl and know nothing about the squeezebox code,
> so I'm not exactly sure where to put this in the plugin code.

You can add this line to /usr/share/perl5/Slim/Player/Squeezebox.pm:

> IO::Socket::SSL::set_client_defaults('SSL_verify_mode' => 0x0);

See
http://forums.slimdevices.com/showthread.php?92723-Soundcloud-plugin-for-squeezeserver&p=785794&viewfull=1#post785794

Restart squeezebox server after adding the line.

Note: This setting is global so it may interfere with other plugins/ the
system.



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-22 Thread nldroid

These are different errors than i got. Can you guys post the url from
the soundcloud website so that i can test them here?



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-20 Thread nldroid

No thanks. I'm glad that you guys made the plugin in the first place.

The fix still works for me. Wasn't sure if i reverted all the test
canges i made but it seems that it still works.

I still think it's odd that the 'download' url redirects to http and the
'stream' url redirects to https on the soundcloud side.

I found some other places in the code where https is changed to http.
Maybe if you keep everything https, the redirection soundcloud works.
Haven't tried that. The current fix is a shot in the dark.



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-18 Thread nldroid

It's definitly an Api change. The difference between the two methods is
that the 'stream redirect' that soundcloud returns uses *https *and the
'download redirect' uses *http*. 

I 'fixed' it by adding one line to the ProtocolHandler.pm file. 

> my $redirector = $res->header( 'location' );
> 
> $redirector =~ s/https/http/;

The first line is line 143. I added the second line.

I don't know if this is a permanent/good solution.



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Soundcloud plugin for squeezeserver

2014-08-13 Thread nldroid

I get the following error while trying to stream a song:

> [14-08-13 21:24:07.8019] Plugins::SqueezeCloud::Plugin::__ANON__ (304)
> fetching: h
> ttps://api.soundcloud.com/me/favorites.json?offset=0&limit=50&&oauth_token=1-DUMMY-1234567-bfca883ed127bef&
> [14-08-13 21:24:08.1727] Plugins::SqueezeCloud::Plugin::_parseTracks
> (214) parsing tracks
> [14-08-13 21:24:08.1747] Plugins::SqueezeCloud::Plugin::__ANON__ (320)
> this page: 7 total: 8050
> [14-08-13 21:24:08.1755] Plugins::SqueezeCloud::Plugin::__ANON__ (325)
> short page, truncate total to 7
> [14-08-13 21:24:10.5081]
> Plugins::SqueezeCloud::ProtocolHandler::getNextTrack (187) Getting track
> from soundcloud for 124019101
> [14-08-13 21:24:10.5989]
> Plugins::SqueezeCloud::ProtocolHandler::gotNextTrack (135) h
> ttps://api.soundcloud.com/tracks/124019101/download?client_id=1234567890dummy123456789
> [14-08-13 21:24:10.8662]
> Plugins::SqueezeCloud::ProtocolHandler::gotNextTrack (151) setting
> soundcloud_meta_124019101
> [14-08-13 21:25:27.0460]
> Plugins::SqueezeCloud::ProtocolHandler::getNextTrack (187) Getting track
> from soundcloud for 31323521
> [14-08-13 21:25:27.1906]
> Plugins::SqueezeCloud::ProtocolHandler::gotNextTrack (135) h
> ttps://api.soundcloud.com/tracks/31323521/stream?client_id=1234567890dummy123456789
> [14-08-13 21:25:27.4056]
> Plugins::SqueezeCloud::ProtocolHandler::gotNextTrack (151) setting
> soundcloud_meta_31323521
> [14-08-13 21:25:27.4158] Slim::Networking::IO::Select::__ANON__ (147)
> Error: Select task failed calling
> Slim::Networking::Async::HTTP::_http_read_body: Can't call method "isa"
> on an undefined value at /usr/share/perl5/Slim/Player/Squeezebox.pm line
> 746.
> ; fh=Slim::Networking::Async::Socket::HTTP=GLOB(0xd54a5b8)

(i've replaces https with h ttps because i'm not allowed to post urls).

I've traced it back to 

> Line 746: } elsif (
> $handler->isa('Slim::Player::Protocols::SqueezePlayDirect') ) {

The Handler is set in these lines (From line 577):

> my $controller  = $params->{'controller'};
> my $url = $controller->streamUrl();
> my $track   = $controller->track();
> my $handler = $controller->protocolHandler();

For some reason the handler creating fails for stream_url types.

The strange thing is that the plugin works perfectly fine with songs
that support downloading and with the setting that it may use the
download url. Nothing works when using the stream_url. I've verified the
json result from Soundcloud and that works in the browser.

I've tried a couple of things (for example disabling the replace https
with http commands) but nothing worked.

Does it still work for you guys? Any idea what can be the problem?



nldroid's Profile: http://forums.slimdevices.com/member.php?userid=63207
View this thread: http://forums.slimdevices.com/showthread.php?t=92723

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins