Skip to content

Commit

Permalink
Merge pull request #15 from haysclark/api_error
Browse files Browse the repository at this point in the history
0.9.1: https > http fix for 'Connect timed out'
  • Loading branch information
danielvijge authored Mar 6, 2017
2 parents d50ac46 + 7051f48 commit d1543f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub initPlugin {

# Initialize the plugin with the given values. The 'feed' is the first
# method called. The available menu entries will be shown in the new
# menu entry 'soundclound'.
# menu entry 'soundcloud'.
$class->SUPER::initPlugin(
feed => \&toplevel,
tag => 'squeezecloud',
Expand Down Expand Up @@ -340,7 +340,7 @@ sub tracksHandler {
$log->debug("max: " . $max);
$quantity = $max;

my $method = "https";
my $method = "http";
my $uid = $passDict->{'uid'} || '';

# If this is set to one then the user has provided the API key. This
Expand Down Expand Up @@ -418,7 +418,7 @@ sub tracksHandler {
# top level menu items would not be visible and the search type value
# would not have been passed into this method here.
if ($authenticated && $prefs->get('apiKey')) {
$method = "https";
$method = "http";
$params .= "&oauth_token=" . $prefs->get('apiKey');
} else {
$params .= "&client_id=$CLIENT_ID";
Expand Down
2 changes: 1 addition & 1 deletion install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<extension>
<name>PLUGIN_SQUEEZECLOUD</name>
<module>Plugins::SqueezeCloud::Plugin</module>
<version>0.9.0</version>
<version>0.9.1</version>
<description>PLUGIN_SQUEEZECLOUD_DESC</description>
<icon>plugins/SqueezeCloud/icon.png</icon>
<defaultState>enabled</defaultState>
Expand Down

0 comments on commit d1543f8

Please sign in to comment.