{"id":15465845,"url":"https://github.com/krtirtho/metadata_god","last_synced_at":"2025-10-17T05:52:40.158Z","repository":{"id":59214031,"uuid":"531392082","full_name":"KRTirtho/metadata_god","owner":"KRTirtho","description":"Audio file Metadata reading and writing library for Flutter","archived":false,"fork":false,"pushed_at":"2023-10-16T06:17:19.000Z","size":103437,"stargazers_count":24,"open_issues_count":15,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T10:34:59.092Z","etag":null,"topics":["android","audio","flac","flutter","id3","linux","m4a","macos","mp3","ogg-tags","rust","windows"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KRTirtho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-01T06:27:51.000Z","updated_at":"2025-03-10T09:05:02.000Z","dependencies_parsed_at":"2024-11-15T06:20:16.834Z","dependency_job_id":"e8db233c-49e0-417d-a556-2504bf31b1eb","html_url":"https://github.com/KRTirtho/metadata_god","commit_stats":{"total_commits":91,"total_committers":4,"mean_commits":22.75,"dds":0.1208791208791209,"last_synced_commit":"5088543e05b6710d3b6b6e81bc6faca32a74daba"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KRTirtho%2Fmetadata_god","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KRTirtho%2Fmetadata_god/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KRTirtho%2Fmetadata_god/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KRTirtho%2Fmetadata_god/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KRTirtho","download_url":"https://codeload.github.com/KRTirtho/metadata_god/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250221543,"owners_count":21394724,"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":["android","audio","flac","flutter","id3","linux","m4a","macos","mp3","ogg-tags","rust","windows"],"created_at":"2024-10-02T01:03:55.865Z","updated_at":"2025-10-17T05:52:40.140Z","avatar_url":"https://github.com/KRTirtho.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚨 Repostory Change 🚨\n`metadata_god` has been moved to https://github.com/KRTirtho/frb_plugins/tree/main/packages/metadata_god\nThis repo will be archived for historical purposes\n\n# Metadata God\n\nA flutter plugin for retrieving and writing audio tags/metadata from audio files. It supports almost all kind of audio files\n\n## Supported Audio Formats\n\n| File Format | Metadata Format       |\n| ----------- | --------------------- |\n| mp3         | id3v2.4               |\n| m4a, mp4    | MPEG-4 audio metadata |\n| flac        | Vorbis comment        |\n\n## Installation\n\nRun in terminal:\n\n```bash\n$ flutter pub add metadata_god\n```\n\n## Configuration\n### Android \nFor using `metadata_god` in Android it needs `READ_EXTERNAL_STORAGE` and `WRITE_EXTERNAL_STORAGE` permissions\n\nSo, add following green highlighted lines to `android/app/src/main/AndroidManifest.xml` file:\n\n```diff\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"com.example.example\"\u003e\n\n+    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\n+    \u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n\n  \n  \u003capplication \n    android:label=\"Example\"\n    android:name=\"${applicationName}\"\n    android:icon=\"@mipmap/ic_launcher\"\n    android:usesCleartextTraffic=\"true\"\n+   android:requestLegacyExternalStorage=\"true\"\n  \u003e\n// .... rest of the file\n```\n\nFinally, use packages like `permission_handler` to request storage permissions from user if not granted already\n```dart\n// before calling any method of MetadataGod in android\n// check if storage permission is granted or not\n// if not, request for permission\n  initState(){\n    final hasStorageAccess = Platform.isAndroid ? await Permission.storage.isGranted : true\n    if(!hasStorageAccess){\n      await Permission.storage.request();\n      if(!await Permission.storage.isGranted){\n        return;\n      }\n    }\n    // ... call all the metadata_god methods from here\n  }\n```\n\n\u003e Following configuration would work with file path that are allowed explicitly by android. If you want entire storage access you'll need `MANAGE_EXTERNAL_STORAGE` permission and request the user to enable access to entire storage in app info settings.\n\n### Other platforms\n\nLinux, Windows and MacOS doesn't need any extra configuration and good to go after installation\n\n## Usage\n\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:mime/mime.dart';\nimport 'package:metadata_god/metadata_god.dart';\n\n// Initialize the plugin\nvoid main(){\n  WidgetsFlutterBinding.ensureInitialized();\n  MetadataGod.initialize();\n  runApp(const MyApp());\n}\n\n// Get metadata from file\nMetadata metadata = await MetadataGod.getMetadata(\"/path/to/audio-file\");\n\n// Set metadata to file\nawait MetadataGod.writeMetadata(\n  \"/path/to/audio-file\",\n  Metadata(\n    title: \"Leave the Door Open\",\n    artist: \"Bruno Mars, Anderson .Paak, Silk Sonic\",\n    album: \"An Evening with Silk Sonic\",\n    genre: \"R\u0026B, Soul\",\n    year: 2021,\n    albumArtist: \"Bruno Mars, Anderson .Paak\",\n    trackNumber: 1,\n    trackTotal: 12,\n    discNumber: 1,\n    discTotal: 5,\n    durationMs: 248000,\n    fileSize: file.lengthSync(),\n    picture: Picture(\n      data: File(\"/path/to/cover-image\").readAsBytesSync(),\n      mimeType: lookupMimeType(\"/path/to/cover-image\"),\n    ),\n  ),\n);\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Author\n\n[Kingkor Roy Tirtho](https://github.com/KRTirtho)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrtirtho%2Fmetadata_god","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrtirtho%2Fmetadata_god","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrtirtho%2Fmetadata_god/lists"}