Skip to content

Commit 653ea29

Browse files
committed
Fix playback reporting
1 parent e845745 commit 653ea29

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

API/Common.pm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ sub getAccountData {
7171

7272
my $accounts = $prefs->get('accounts') || return;
7373

74-
my $userId = $clientOrUserId;
75-
76-
if (ref $clientOrUserId) {
77-
$userId = $accounts->{$prefs->client($clientOrUserId)->get('userId')} || return;
78-
}
74+
my $userId = ref $clientOrUserId
75+
? $prefs->client($clientOrUserId)->get('userId')
76+
: $clientOrUserId;
7977

8078
return $accounts->{$userId};
8179
}

Reporting.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ sub _post {
143143
$url = sprintf("%s%s?app_id=%s", Plugins::Qobuz::API::QOBUZ_BASE_URL(), $url, $aid ||= Plugins::Qobuz::API->aid() );
144144
my $body = sprintf("events=[%s]&user_auth_token=%s", to_json($event), Plugins::Qobuz::API::Common->getToken($client));
145145

146-
main::INFOLOG && $log->is_info && $log->info("$url: $body");
146+
main::INFOLOG && $log->is_info && $log->info("$url: " . to_json($event));
147147

148148
Slim::Networking::SimpleAsyncHTTP->new(
149149
sub {

0 commit comments

Comments
 (0)