Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGES
get()
static method is nowread()
(old method is still available)update()
method is nowwrite()
(old method is still available)getAudio()
is nowgetMetadata()
getStat()
has been removed, you can findgetLastAccessAt()
,getCreatedAt()
,getModifiedAt()
intogetMetadata()
getWriter()
has been removed, only used whenwrite()
method is calledgetReader()
is nowgetId3Reader()
getPodcastDescription()
is nowgetSynopsis()
getStik()
has been removed (you can find it ingetRaw()
method or withgetRawKey('stik')
)AudioCover
objecttoArray()
has been revised to return a more structured arraygetDuration()
is nowfloat
getDurationHuman()
to get human readable durationgetTrackNumberInt()
to get track number as integergetDiscNumberInt()
getTags()
is nowgetRawAll()
as multidimensional arraygetRaw()
will return main format as arraygetRawKey('ANY_KEY')
will return specific key from main formatgetAudioFormats()
has been removedgetExtras()
has been removed (duplicate ofgetRawAll()
,getRaw()
ortoArray()
)writer()
can now usetag('ANY_KEY', 'ANY_VALUE')
to update directly any tag without usetags()
writer()
methodtags()
has been modified, it's not native method ofgetID3
anymore, just an array of tagsgetQuicktime()
toAudioMetadata
to get quicktime tags, with chapters for audiobooksAudioCover
getContents()
method to get contents, default is raw string (binary) and you can get base64 encoded string withtrue
parametergetMimeType()
method to get mime type of the covergetWidth()
method to get width of the covergetHeight()
method to get height of the covertoArray()
method to get cover as arrayAudioMetadata
getFilesize()
is nowgetFileSize()
getSizeHuman()
to get human readable size with decimal precisiongetDataFormat()
to get data format likemp3
getDurationReadable()
because it's now intoAudio::class
getLossless()
is nowisLossless()
getCodec()
to get codec of the file, likeLAME
getEncoderOptions()
to get encoder options of the file, likeCBR
getVersion()
to get version ofJamesHeinrich/getID3
getAvDataOffset()
to get offset of audio/video datagetAvDataEnd()
to get end of audio/video datagetFilePath()
to get file path, like/path/to
getFilename()
to get filename, likefile.mp3
getLastAccessAt()
,getCreatedAt()
,getModifiedAt()
fromstat()
functiontoArray()
method to get metadata as arrayFix
write()
won't erase other tags [Bug]: Setting one Tag will clear all other tags #34