{"id":21454742,"url":"https://github.com/timusus/ktaglib","last_synced_at":"2025-07-14T23:32:26.556Z","repository":{"id":77922460,"uuid":"263014508","full_name":"timusus/KTagLib","owner":"timusus","description":"Taglib Kotlin Library","archived":false,"fork":false,"pushed_at":"2023-11-27T11:12:17.000Z","size":244,"stargazers_count":9,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"release","last_synced_at":"2023-11-27T12:28:04.979Z","etag":null,"topics":["cpp","kotlin","storage-access-framework","taglib"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timusus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-11T10:46:39.000Z","updated_at":"2023-11-27T12:28:07.962Z","dependencies_parsed_at":null,"dependency_job_id":"33a3cd03-0e64-40ac-bf0a-77600bb1e75d","html_url":"https://github.com/timusus/KTagLib","commit_stats":null,"previous_names":[],"tags_count":15,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FKTagLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FKTagLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FKTagLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FKTagLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timusus","download_url":"https://codeload.github.com/timusus/KTagLib/tar.gz/refs/heads/release","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226003027,"owners_count":17558157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","kotlin","storage-access-framework","taglib"],"created_at":"2024-11-23T05:08:56.905Z","updated_at":"2025-07-14T23:32:26.548Z","avatar_url":"https://github.com/timusus.png","language":"C++","readme":"# KTagLib\n\nKotlin bindings for [TagLib](https://github.com/taglib/taglib)\n\nGradle:\n\nStep 1. Add the Jitpack repository to the root build.gradle\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n\nStep 2. Add the dependency\n\n\tdependencies {\n\t    implementation(\"com.github.timusus:KTagLib:release-SNAPSHOT\") // or kTagLib:1.5.1\n\t}\n\n\nSee the sample app for an example of reading tags, using the Storage Access Framework.\n\n\n## Usage ##\n\n#### Read Tags ####\n\nRead the tags from a file descriptor:\n\n`KTagLib().getMetadata(fileDescriptor: Int)`\n\nThis returns a Metadata object, containing the tags and audio properties of the audio file located at `fileDescriptor`, or null if none are found\n\n#### Retrieve Artwork ####\n\n`KTagLib().getArtwork(fileDescriptor: Int)`\n\nReturns a `ByteArray` (or null) representing the image data of the largest image found.\n\n#### Write Tags ####\n\n    fun writeMetadata(\n        fileDescriptor: Int,\n        properties : HashMap\u003cString, ArrayList\u003cString\u003e\u003e\n    ): Boolean\n\nAttempts to write the tags supplied via the map to the file located at `fileDescriptor`. Existing tags with the same key are replaced.\n\nReturns true if the tags are successfully updated.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimusus%2Fktaglib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimusus%2Fktaglib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimusus%2Fktaglib/lists"}