Hello João,
I've tried to use the List Dialogue action to limit some tasks to specific members of an array and I have stumbled into the following problem:
Currently the output of this action is an array containing the text of the items that were selected. problem is that if one of the items contains a comma, the resulting array is not really consistent. I've encountered this issue when using AutoWeb with Spotify API component that outputs an array containing the names of an album's songs and one of the songs contains a comma.
Going a bit deeper down the rabbit's hole without opening a new topic, I have the impression that the arrays that are created by the web API's kind of mess up with Tasker's arrays.
For example, as far as I've noticed, Tasker doesn't let the user create %Array1 = Two, Three. But AutoWeb would be able to output something lile %song_names= One, Two, Three, Four, where "Two, Three" is actually the name of one song, so %song_names2 = Two, Three.
From these observations I feel that some mitigation might be needed. Maybe the choice of comma as an array separator was not the best (I know, it was made years ago, by Pent, when these kind of situations were unimaginable). Maybe the default separator of arrays should be changed or at least the user should be given the option to choose it. I don't know...
Thanks!
PS: I've tried to give an actual example and this is the result:
Task:
A1: AutoWeb Authentication [ Configuration:Web Service: Spotify Timeout (Seconds):60 ]
A7: AutoWeb Web Service [ Configuration:API: Spotify
API Action: Get album tracks
Market: DE
Id: 74ydDCcXTco741y42ceRJ5 Timeout (Seconds):120 ]
A8: Array Set [ Variable Array:%Arrays Values:%items_name() Splitter: ]
Resulting variables:
