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

Fixes #200 and copies Pictures over from Id3v2 Tag to File.Tag #201

Merged
merged 2 commits into from
Feb 19, 2020

Conversation

seankearney
Copy link
Contributor

Ensures that Pictures on the Id3v2 object are copied over to the File.Tag on a CopyTo operation.

@dnfclas
Copy link

dnfclas commented Feb 11, 2020

CLA assistant check
All CLA requirements met.

@@ -1563,6 +1563,9 @@ public virtual void CopyTo (Tag target, bool overwrite)

if (overwrite || target.DateTagged == null)
target.DateTagged = DateTagged;

if (overwrite || target.Pictures.Length == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add null-safety: if (overwrite || target.Pictures == null || target.Pictures.Length == 0)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You got it.

@decriptor decriptor merged commit 3bb7508 into mono:master Feb 19, 2020
@decriptor
Copy link
Collaborator

Thanks!

@seankearney seankearney deleted the 200-CopyTo-bug branch February 20, 2020 19:28
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.

4 participants