Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Custom.pm
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ sub _userQuery {
# very lenghty (Perl hash key order is undetermined).
$cacheKey = join(':', map { $_ . $params->{$_} } sort grep { $_ !~ /^_/ } keys %$params );
$cacheKey .= join(':', map { $_ . $content->{$_} } sort keys %$content) if $content && %$content;
$cacheKey .= ':' . $self->userId if $self->userId;
$cacheKey = md5_hex($cacheKey);
}

Expand Down
9 changes: 5 additions & 4 deletions Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ sub handleFeed {
},{
name => cstring($client, 'PLUGIN_DEEZER_FLOW'),
image => 'plugins/Deezer/html/flow.png',
play => 'deezer://user/' . $userId . '/flow.dzr',
play => 'deezer://user.flow',
type => 'outline',
items => [{
name => cstring($client, 'PLUGIN_DEEZER_FLOW'),
Expand All @@ -311,13 +311,14 @@ sub handleFeed {
type => 'link',
url => sub {
my ($client, $cb) = @_;
my $flow = !$prefs->get($userId . ':flow');
$prefs->set($userId . ':flow', $flow);
my $currentUserId = getAPIHandler($client)->userId;
my $flow = !$prefs->get($currentUserId . ':flow');
$prefs->set($currentUserId . ':flow', $flow);
$cb->({ items => [{
type => 'text',
name => cstring($client, $flow ? 'PLUGIN_DEEZER_FLOW_DISCOVERY' : 'PLUGIN_DEEZER_FLOW_DEFAULT'),
}] });
},
},
},
],
},{
Expand Down