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

Ability to fetch track artwork as Base 64 #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dylanvorster
Copy link

Hi There

I really liked your library and how easy it was to use. I needed the ability to also fetch the artwork from iTunes for the application I'm building, and so I implemented an option where you can say : ({fetchArtwork: true}) and it will add the artwork to the transport. It gets encoded as a base64 and I've tested that it works on mac. I haven't yet added the support to windows, but ill probably get to that in a few weeks.

Cheers

@jwalgran
Copy link
Owner

jwalgran commented Aug 2, 2015

Thanks for the PR. I am away from the computer for a few days, but I'll be able to review this soon.

On Aug 2, 2015, at 1:39 PM, dylanvorster [email protected] wrote:

Hi There

I really liked your library and the how easy it was to use. I needed the ability to also fetch the artwork from iTunes for the application I'm building, and so I implemented an option where you can say : ({fetchArtwork: true}) and it will add the artwork to the transport. It gets encoded as a base64 and I've tested that it works on mac. I haven't yet added the support to windows, but ill probably get to that in a few weeks.

Cheers

You can view, comment on, or merge this pull request online at:

#4

Commit Summary

Added support for optionally fetching artwork as base64
Added docs, and small hotfi
Added docs, and small hotfix
Merge branch 'master' of https://github.com/dylanvorster/playback
fix demo
File Changes

M .gitignore (91)
D applescripts/ApplicationLib.applescript (4)
D applescripts/ApplicationLib.scpt (0)
M applescripts/ITunesTransport.applescript (230)
M applescripts/ITunesTransport.scpt (0)
M demo.js (4)
M index.js (43)
M package.json (25)
M readme.md (10)
Patch Links:

https://github.com/jwalgran/playback/pull/4.patch
https://github.com/jwalgran/playback/pull/4.diff

Reply to this email directly or view it on GitHub.

@FlorianWendelborn
Copy link
Collaborator

@dylanvorster somewhat unrelated, but if you have access to a mac you could probably add the setVolume method for mac too. Should be an easy one. I added it for windows already, but can't test on OSX.

@jwalgran
Copy link
Owner

jwalgran commented Aug 8, 2015

I tested this and it works well. I would like to clean up the package.json a little before merging it.

"bugs": {
"url": "https://github.com/jwalgran/playback/issues"
},
"_id": "[email protected]",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on looking at the package.json for a lot of other popular modules, I would like to remove the following keys from the commit:

_id
dist
_from
_npmVersion
_npmUser
_shasum
_resolved
directories (because it just refers to an empty object)

@dylanvorster
Copy link
Author

Cool beans :) Ive realised that there might be an issue if there is no artwork, my entire iTunes library all has artwork (which is why Im not sure if this is an issue) so we probably just need to look at it.

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

Successfully merging this pull request may close these issues.

3 participants