diff options
4 files changed, 48 insertions, 2 deletions
diff --git a/audio/squeezeboxserver/Makefile b/audio/squeezeboxserver/Makefile index 052e70533f12..f7be2bf1332d 100644 --- a/audio/squeezeboxserver/Makefile +++ b/audio/squeezeboxserver/Makefile @@ -7,7 +7,7 @@ PORTNAME= squeezecenter PORTVERSION= 7.2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= http://downloads.slimdevices.com/SqueezeCenter_v${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.0//}-noCPAN diff --git a/audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm b/audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm new file mode 100644 index 000000000000..a715f36e5f98 --- /dev/null +++ b/audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- Slim/Plugin/LastFM/ProtocolHandler.pm.orig ++++ Slim/Plugin/LastFM/ProtocolHandler.pm +@@ -7,7 +7,7 @@ + use strict; + use base qw(Slim::Player::Protocols::HTTP); + +-use JSON::XS qw(from_json); ++use JSON::XS qw(decode_json); + use URI::Escape qw(uri_escape_utf8); + + use Slim::Player::Playlist; +@@ -155,7 +155,7 @@ + my $client = $http->params->{client}; + my $params = $http->params->{params}; + +- my $track = eval { from_json( $http->content ) }; ++ my $track = eval { decode_json( $http->content ) }; + + if ( $@ || $track->{error} ) { + # We didn't get the next track to play diff --git a/audio/squeezecenter/Makefile b/audio/squeezecenter/Makefile index 052e70533f12..f7be2bf1332d 100644 --- a/audio/squeezecenter/Makefile +++ b/audio/squeezecenter/Makefile @@ -7,7 +7,7 @@ PORTNAME= squeezecenter PORTVERSION= 7.2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= http://downloads.slimdevices.com/SqueezeCenter_v${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.0//}-noCPAN diff --git a/audio/squeezecenter/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm b/audio/squeezecenter/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm new file mode 100644 index 000000000000..a715f36e5f98 --- /dev/null +++ b/audio/squeezecenter/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- Slim/Plugin/LastFM/ProtocolHandler.pm.orig ++++ Slim/Plugin/LastFM/ProtocolHandler.pm +@@ -7,7 +7,7 @@ + use strict; + use base qw(Slim::Player::Protocols::HTTP); + +-use JSON::XS qw(from_json); ++use JSON::XS qw(decode_json); + use URI::Escape qw(uri_escape_utf8); + + use Slim::Player::Playlist; +@@ -155,7 +155,7 @@ + my $client = $http->params->{client}; + my $params = $http->params->{params}; + +- my $track = eval { from_json( $http->content ) }; ++ my $track = eval { decode_json( $http->content ) }; + + if ( $@ || $track->{error} ) { + # We didn't get the next track to play |