Skip to content

1.6.0

Latest

Choose a tag to compare

@timusus timusus released this 02 Nov 03:58
· 3 commits to release since this release

Full Changelog: 1.5.1...1.6.0

New Features

  • Added optional filename parameter to getMetadata(), writeMetadata(), and getArtwork() functions
  • Enables extension-based file type detection as a fallback for improved reliability
  • Particularly useful for files with large metadata blocks (>1KB) that previously failed detection
  • Fully backward compatible - filename parameter defaults to null

Dependencies

  • Updated TagLib from 2.0 to 2.1.1
  • Updated Gradle wrapper to 9.2.0

Bug Fixes

  • Fixed tag reading failure for audio files with large ID3v2 tags or embedded artwork
  • Improved file format detection reliability when using file descriptors

API Changes

// Updated signatures (filename parameter is optional)
fun getMetadata(fileDescriptor: Int, filename: String? = null): Metadata?
fun writeMetadata(fileDescriptor: Int, properties: HashMap<String, ArrayList<String?>>, filename: String? = null): Boolean
fun getArtwork(fileDescriptor: Int, filename: String? = null): ByteArray?