Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save cover in data #1

Open
Frulko opened this issue Dec 12, 2015 · 5 comments
Open

Save cover in data #1

Frulko opened this issue Dec 12, 2015 · 5 comments

Comments

@Frulko
Copy link

Frulko commented Dec 12, 2015

Hi,
first thanks for your work :) It's very helpful for my project.
I just want to know if you have any idea about how can we save the image cover sent in metadata?

thanks.

@ktruckenmiller
Copy link
Owner

In my script I'm querying iTunes for that.

@Frulko
Copy link
Author

Frulko commented Dec 12, 2015

Yes i saw that ^^ is it hard to save this image ? that's why you use iTunes ?
Maybe an encrypted image data.

@ktruckenmiller
Copy link
Owner

Yes it's very inconsistent and it is based on the user sending it. This makes it a bit more robust. You could probably save the file using the fs library or something else that downloads images from urls

@Frulko
Copy link
Author

Frulko commented Dec 12, 2015

Ok thanks i'll use iTunes. :) But just for the challenge, I tried to save the raw data in PICT code as an image (just write data and add .jpg extension) but it seems not working.. have you did any research about how the data was formed ?

@ktruckenmiller
Copy link
Owner

I believe shairport sync has a setting where you can store the image. It comes in late, and you have to check the directory periodically to see if it exists. I'm not super sure because it was a long time ago - but you should check that out and then modify the node script accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants