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

Re: issue #1028: "embedart: Resize images only once per album #1036

Merged
merged 5 commits into from Oct 28, 2014

Conversation

kerobaros
Copy link
Collaborator

Added function resize_image. embedart now calls resize_image once in embed_album before it calls embed_item once per track. resize_image is also called in embed_item if embed_item is not being called from embed_album.

@sampsyo
Copy link
Member

sampsyo commented Oct 25, 2014

Thanks for opening the new PR!

It looks like this is making a test fail. That test just runs beet embedart -f <some file> and makes sure the file actually gets embedded; according to the output, it does not. Can you do a little investigation and see whether the test is wrong or whether something has actually broken?

@@ -161,7 +165,16 @@ def embed_album(album, maxwidth=None, quiet=False):
for item in album.items():
embed_item(item, imagepath, maxwidth, None,
config['embedart']['compare_threshold'].get(int),
config['embedart']['ifempty'].get(bool))
config['embedart']['ifempty'], asalbum=True)
Copy link
Member

Choose a reason for hiding this comment

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

Please leave in that .get(bool), which will convert the config view to a boolean.

@kerobaros
Copy link
Collaborator Author

Everything seems to pass now, both locally and on Travis. Likewise, I successfully embedded and extracted a file from several flac files. So, hooray!

@sampsyo
Copy link
Member

sampsyo commented Oct 28, 2014

LGTM! Thanks! ✨

@kerobaros, I'll mark you as a committer to the repo now, so feel free to push little fixes directly if you like. But please feel free to continue to use PRs if you prefer a code review, of course. 😃

@sampsyo sampsyo merged commit 3a56077 into beetbox:master Oct 28, 2014
sampsyo added a commit that referenced this pull request Oct 28, 2014
Re: issue #1028: "embedart: Resize images only once per album
sampsyo added a commit that referenced this pull request Oct 28, 2014
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.

None yet

2 participants