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

Write removes Artwork #69

Closed
kh75park opened this issue Jun 2, 2020 · 3 comments
Closed

Write removes Artwork #69

kh75park opened this issue Jun 2, 2020 · 3 comments

Comments

@kh75park
Copy link

kh75park commented Jun 2, 2020

I do a simple read, make some updates to title, album, then write back to MP3 file.
But once I write, the artwork is gone.
Even when I do a read then write exact content that I read, the art work is gone after the write.
Something like below makes the artwork disappear or unusable.

const tags: any = await nodeID3.read(fullPathNew);
await nodeID3.write(tags, fullPathNew);

I use WinAmp to check the tag contents including the artwork.
Before I run above code, the artwork shows, but after running above code, the artwork does not show. Please fix this problem or share how I can preserve the artwork. Other than this issue, this is a great module!

@IvanMMM
Copy link

IvanMMM commented Jul 29, 2020

Did you tried update instead of write method?

@Zazama
Copy link
Owner

Zazama commented Jul 29, 2020

If you don't provide a

image/APIC: path/buffer

in your tags object, the image is "lost", because write deletes all non-existing tags in the passed Object, you can use update instead or modify the tags Object before writing it again.

@Zazama Zazama closed this as completed Jul 29, 2020
@kh75park
Copy link
Author

kh75park commented Dec 5, 2020

I haven't had chance to mess with this till now, but looks like I may have been using older version which had the issue I was seeing and I see there's 0.2.x version and that seems to work fine. Thanks.

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

No branches or pull requests

3 participants