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

Errors #333

Open
Brian-Schultz opened this issue Jul 22, 2021 · 1 comment
Open

Errors #333

Brian-Schultz opened this issue Jul 22, 2021 · 1 comment

Comments

@Brian-Schultz
Copy link

Brian-Schultz commented Jul 22, 2021

I'm trying to write some ETCO tags to an mp3, and I'm getting the following errors:

PHP Notice:  Array to string conversion in /home/brian/getID3/getid3/write.id3v2.php on line 2017
PHP Warning:  Invalid argument supplied for foreach() in /home/brian/getID3/getid3/write.id3v2.php on line 1648
PHP Warning:  Invalid argument supplied for foreach() in /home/brian/getID3/getid3/write.id3v2.php on line 1648
PHP Warning:  Invalid argument supplied for foreach() in /home/brian/getID3/getid3/write.id3v2.php on line 1648
PHP Warning:  Invalid argument supplied for foreach() in /home/brian/getID3/getid3/write.id3v2.php on line 1648
PHP Warning:  Invalid argument supplied for foreach() in /home/brian/getID3/getid3/write.id3v2.php on line 1648

Any ideas on what I'm doing wrong?

@Brian-Schultz
Copy link
Author

Brian-Schultz commented Jul 28, 2021

I fixed this part, but what is the correct way to write ETCO tags?

I've tried probably 100 ways to do it...and none of them work.

Here's the latest try:

$TagData['id3v2']['ETCO'][0]['typeid'] = '03';
$TagData['id3v2']['ETCO'][0]['type'] = '03';
$TagData['id3v2']['ETCO'][0]['timestamp'] = '1000';
$TagData['id3v2']['ETCO'][0]['timestampformat'] = '02';

$TagData['id3v2']['ETCO'][0]['typeid'] = '04';
$TagData['id3v2']['ETCO'][0]['type'] = '04';
$TagData['id3v2']['ETCO'][0]['timestamp'] = '1500';
$TagData['id3v2']['ETCO'][0]['timestampformat'] = '02';

This obviously isn't correct. What is the correct way?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants