caleb531 / play-song

An Alfred workflow for quickly and easily playing music in the Apple Music app
MIT License
109 stars 9 forks source link

playplaylist shows no result when there are too many matches #25

Closed alexmerkel closed 9 years ago

alexmerkel commented 9 years ago

I have a lot (>30) of playlist that start with "Best-Of:". When using playplaylist, no result is shown until I limit the matches, e.g "Best-Of: R". Following error is given while typing Best-Of:

[ERROR: alfred.workflow.input.scriptfilter] Code 1: 1660:1671: execution error: The variable resultLimit is not defined. (-2753)
tyilo commented 9 years ago

The problem is probably here: https://github.com/caleb531/play-song/blob/master/filters/filter-playlists.applescript#L48

I think resultLimit should be replaced by (config's resultLimit).

caleb531 commented 9 years ago

Ah, you are indeed correct. I'll push out a fix for this and for the disableShuffle() handler later today.

Caleb

On Jan 27, 2015, at 8:43 AM, Asger Hautop Drewsen notifications@github.com wrote:

The problem is probably here: https://github.com/caleb531/play-song/blob/master/filters/filter-playlists.applescript#L48

I think resultLimit should be replaced by (config's resultLimit).

— Reply to this email directly or view it on GitHub.

caleb531 commented 9 years ago

Fixed in the latest commit. Will push a new release (v3.0.3) now.