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

Embedart: remove_art_file on import #1675

Merged
merged 3 commits into from Nov 3, 2015
Merged

Embedart: remove_art_file on import #1675

merged 3 commits into from Nov 3, 2015

Conversation

l-t-k
Copy link
Contributor

@l-t-k l-t-k commented Oct 30, 2015

Should fix #1662.

I think the fix is easy. Don't know if it's clean though. Did some tests (+/- 10 albums), all successful. This is the first time I'm using python so please let me know what I should improve:)

kooimens added 2 commits October 30, 2015 17:04
Should fix #1662.

I think the fix is easy. Don't know if it's clean though. Did some tests (+/- 10 albums), all successful. This is the first time I'm using python so please let me know what I should improve:)
@@ -80,7 +80,7 @@ def embed_func(lib, opts, args):
art.embed_album(self._log, album, maxwidth, False,
compare_threshold, ifempty)

if remove_art_file and album.artpath is not None:
if remove_art_file and album.artpath:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Kraymer, I assume this line can be changed as well?

@sampsyo
Copy link
Member

sampsyo commented Oct 30, 2015

Awesome! Thank you for looking into this.

A bit of refactoring will avoid code duplication. Then, we'll just need a changelog entry and we'll be ready to merge.

Thanks again! ✨

Damn it, that was really hard for me:D. First time seriously using python. Please review it carefuly.
@l-t-k
Copy link
Contributor Author

l-t-k commented Nov 2, 2015

You're welcome. I was really struggling with the function. I probably made some mistakes and t.b.h. I'm a bit stuck now...

@sampsyo
Copy link
Member

sampsyo commented Nov 3, 2015

You were just missing a : at the end of the function declaration. Fixing now and merging.

@sampsyo sampsyo merged commit bcef3a7 into beetbox:master Nov 3, 2015
sampsyo added a commit that referenced this pull request Nov 3, 2015
Embedart: remove_art_file on import
sampsyo added a commit that referenced this pull request Nov 3, 2015
sampsyo added a commit that referenced this pull request Nov 3, 2015
sampsyo added a commit that referenced this pull request Nov 3, 2015
@l-t-k l-t-k deleted the patch-1 branch November 3, 2015 18:08
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.

EmbedArt Plugin: remove_art_file doesn't seem to work
3 participants