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

Bugfix/copy tags to comments optional entities #220

Conversation

ben-xo
Copy link
Contributor

@ben-xo ben-xo commented Dec 24, 2019

getid3_lib::CopyTagsToComments($info) spends time creating HTML versions of tags, even if the instance of getID3 that created the $info array had the option option_tags_html set to false.

This changeset adds an optional $option_tags_html (defaulting to true) to getid3_lib::CopyTagsToComments(), and then an instance method $getID3->CopyTagsToComments() which passes the option in as it was originally set.

The demo files are also updated to match, although the change should be fully backward compatible.

This allows you to disable the creation of HTML versions of tags when they were originally disabled for $getID3->analyze() as well, saving time and memory
…for $option_tags_html to getid3_lib::CopyTagsToComments()
…o that they always obey the configuration chosen for getID3
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

2 participants