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

[Bug]: Setting one Tag will clear all other tags #34

Closed
rsy12 opened this issue Sep 28, 2024 · 4 comments
Closed

[Bug]: Setting one Tag will clear all other tags #34

rsy12 opened this issue Sep 28, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@rsy12
Copy link

rsy12 commented Sep 28, 2024

What happened?

I want only to update the genre tag. But if I do this all other tags are cleared.
Is this possible to set only one tag to update ?

How to reproduce the bug

If I do this in the following way:
$tag = $audio->update()->genre($newGenre)->save();
or
$tag = $audio->update()
->tags([
'genre' => $newGenre,
])
->tagFormats(['id3v1','id3v2.4']) // optional
->save();
All tags are cleared:

After the update Call
eyeD3 03.Eat_the_Music.mp3
/home/rsy/tmp/test/03.Eat_the_Music.mp3 [ 12.10 MB ]

Time: 05:11 MPEG1, Layer III [ 320 kb/s @ 48000 Hz - Stereo ]

ID3 v2.4:
title:
artist:
album:
track: genre: Adult Alternative Pop (id None)


Before the update call:
eyeD3 03.Eat_the_Music.mp3
/home/rsy/tmp/test/03.Eat_the_Music.mp3 [ 12.10 MB ]

Time: 05:11 MPEG1, Layer III [ 320 kb/s @ 48000 Hz - Stereo ]

ID3 v2.3:
title: Eat the Music
artist: Kate Bush
album: The Red Shoes
album artist: Kate Bush
composer: Kate Bush
recording date: 1993
track: 3/12 genre: Adult alternative pop/rock (id None)
Lyrics: [Description: ] [Lang: eng]

FRONT_COVER Image: [Size: 226557 bytes] [Type: image/jpeg]
Description:

Package Version

3.0

PHP Version

8.3.6

Which operating systems does with happen with?

Linux

Notes

No response

@rsy12 rsy12 added the bug Something isn't working label Sep 28, 2024
@ewilan-riviere ewilan-riviere self-assigned this Sep 29, 2024
@ewilan-riviere ewilan-riviere added enhancement New feature or request bug Something isn't working and removed bug Something isn't working enhancement New feature or request labels Sep 29, 2024
@ewilan-riviere
Copy link
Contributor

Thanks for report!
Fixed in next major version this week.

@ewilan-riviere ewilan-riviere mentioned this issue Oct 3, 2024
@ewilan-riviere
Copy link
Contributor

Can you try latest version and tell me if you can update your file?

@rsy12
Copy link
Author

rsy12 commented Oct 3, 2024

Hello, thanks for the fast response.
I have check the new code with my program. All works fine the changed genre is updated and all other fields left untouched.
Thanks a lot for your work.
Cheers Reinhard

@ewilan-riviere
Copy link
Contributor

Thanks for your feedback !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants