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

Embed option #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Embed option #60

wants to merge 2 commits into from

Conversation

pkel
Copy link

@pkel pkel commented Oct 17, 2020

I tried to implement @wisp3rwind's proposal to fix issue #59. What do you think?

@pkel pkel changed the title Introduce embed option. Embed option. Oct 17, 2020
@pkel pkel changed the title Embed option. Embed option Oct 17, 2020
@wisp3rwind
Copy link
Collaborator

This looks good already! However, I think I'd prefer the config option to be

Another approach to the configuration might be to add an alternatives..sync-art = ["no"|"embed"|"copy"] option.

(without copy for now). That'd reflect better that a typical (I think) would only want either of the options to be set, and we wouldn't accumulate boolean options if other methods to sync art were added. What do you think @geigerzaehler, @pkel?

@pkel
Copy link
Author

pkel commented Oct 18, 2020

I see a few disadvantages:

  • it's an unnecessary restriction for the users
  • internally we'd still have to derive bools from the tertiary option
  • if we fall back to convert.embed we should also respect convert.copy_album_art, what if both are true?
  • can we put the fallback logic in simple words for the documentation?
  • convert is an official plugin, why not reuse the established configuration logic?

But I have no strong opinion. My use case is to copy not embed so I'd be happy with your proposal too.

Copy link
Collaborator

@wisp3rwind wisp3rwind left a comment

Choose a reason for hiding this comment

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

I see a few disadvantages:

* it's an unnecessary restriction for the users

* internally we'd still have to derive bools from the tertiary option

* if we fall back to `convert.embed` we should also respect `convert.copy_album_art`, what if both are true?

* can we put the fallback logic in simple words for the documentation?

* convert is an official plugin, why not reuse the established configuration logic?

But I have no strong opinion. My use case is to copy not embed so I'd be happy with your proposal too.

Fair enough, thanks for laying out in detail your reasoning here! There's one small typo in the new documentation, otherwise this looks good to merge 🎉

README.md Outdated Show resolved Hide resolved
Copy link
Owner

@geigerzaehler geigerzaehler left a comment

Choose a reason for hiding this comment

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

✨ and thanks for documenting it in detail.

Could you please add a test that checks that we don’t embed if the option is set to false? And could you also add an entry in CHANGELOG.md? This should be under a new “Upcoming” heading.

@kergoth
Copy link

kergoth commented Nov 4, 2021

I see a few disadvantages:

* it's an unnecessary restriction for the users

* internally we'd still have to derive bools from the tertiary option

* if we fall back to `convert.embed` we should also respect `convert.copy_album_art`, what if both are true?

* can we put the fallback logic in simple words for the documentation?

* convert is an official plugin, why not reuse the established configuration logic?

But I have no strong opinion. My use case is to copy not embed so I'd be happy with your proposal too.

Fair enough, thanks for laying out in detail your reasoning here! There's one small typo in the new documentation, otherwise this looks good to merge 🎉

I think the sync_art option option may work better for when we enhance the copy_art branch to handle Symlink Views. There are unclear semantics around copy_album_art and a symlink view, does it make sense to copy art into a symlink tree, or should it symlink the art? If the latter, the option name doesn't make sense. So we'd likely want either an additional boolean, or go the sync_art option and add a 'link' option to it.. or we just make the assumption that either copy or embed actually means link for a symlink view.

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

4 participants