Skip to content

Commit

Permalink
Fix missing artist in play notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
valrus committed May 3, 2017
1 parent 228bfc1 commit d904ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main():
artist = os.environ.get('ALFRED_MPD_ARTIST')
if artist:
query_args += ['albumartist', artist]
variables['albumartist'] = artist
variables['artist'] = artist

track = os.environ.get('ALFRED_MPD_TRACK')
if track:
Expand Down
2 changes: 1 addition & 1 deletion src/filters/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def main():

artist = os.environ.get('ALFRED_MPD_ARTIST')
if artist:
query_args += ['artist', artist]
query_args += ['albumartist', artist]

print(json.dumps({
'items': [
Expand Down

0 comments on commit d904ea9

Please sign in to comment.