previous albumart

You have a question or need an advice about how to do something? Ask it here!
Post Reply
atlantic
Posts: 82
Joined: 09 Apr 2012 18:35
Location: Belgium
Contact:
previous albumart

Post by atlantic »

I want to make a jpg with EXEC_WRITE_JPEG_FILE from previous, now and next. Now and next are ok. But I don't get a previous jpg
what's wrong

EXEC_WRITE_JPEG_FILE C:\WebPlayer\pre.jpg|${02albumart}|200
EXEC_WRITE_JPEG_FILE C:\WebPlayer\now.jpg|0|200
EXEC_WRITE_JPEG_FILE C:\WebPlayer\next.jpg|1|200
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: previous albumart

Post by radio42 »

Very simple: ${02albumart} is not a valid macro. For all available macros, please see the Appendix of the user manual.

However, the EXEC_WRITE_JPEG_FILE contains the following parameters: filename[|what[|size]]
filename: denotes the full path to a .jpg file
from: can be '0'=current track (default), '1'=next track, 'A'=current player A, 'B'=current player B, 'C'=current player C, 'D'=current player D
size: defines the quadratic with/height (default is 200)

As you can see, there is no option to specify a previous track. However, this can be cached by your application or web-site you are sending the data to, as you typically fire this command with every new track, a previous albumart has already been send and cannot change afterwards, that's why there is no option for this.

Post Reply