{"id":16009609,"url":"https://github.com/fwcd/swift-music-library","last_synced_at":"2025-08-12T01:31:25.979Z","repository":{"id":200215434,"uuid":"624658934","full_name":"fwcd/swift-music-library","owner":"fwcd","description":"Library for parsing and exporting local music libraries","archived":false,"fork":false,"pushed_at":"2024-10-04T03:14:57.000Z","size":116,"stargazers_count":3,"open_issues_count":6,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-01T14:11:51.921Z","etag":null,"topics":["apple-music","export","itunes","swift","xml"],"latest_commit_sha":null,"homepage":"https://fwcd.github.io/swift-music-library/documentation/musiclibrary","language":"Swift","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/fwcd.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-07T00:56:03.000Z","updated_at":"2024-10-04T03:15:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"3601a5b9-b8e9-4e11-ab11-6ef10b1a9a0e","html_url":"https://github.com/fwcd/swift-music-library","commit_stats":{"total_commits":100,"total_committers":4,"mean_commits":25.0,"dds":"0.41000000000000003","last_synced_commit":"b8ba79736048f4cf5a943a6c4b3252526d0cd353"},"previous_names":["fwcd/swift-music-library"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-music-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-music-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-music-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-music-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwcd","download_url":"https://codeload.github.com/fwcd/swift-music-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229625048,"owners_count":18100641,"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":["apple-music","export","itunes","swift","xml"],"created_at":"2024-10-08T13:03:10.775Z","updated_at":"2024-12-13T22:35:10.804Z","avatar_url":"https://github.com/fwcd.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift Music Library\n\n[![Build](https://github.com/fwcd/swift-music-library/actions/workflows/build.yml/badge.svg)](https://github.com/fwcd/swift-music-library/actions/workflows/build.yml)\n[![Docs](https://github.com/fwcd/swift-music-library/actions/workflows/docs.yml/badge.svg)](https://fwcd.github.io/swift-music-library/documentation/musiclibrary)\n\nA small library for programmatically interfacing with local media libraries, including\n\n- The local iTunes and Apple Music/TV/Podcasts library\n- iTunes-compatible XML files\n- The Mixxx library (WIP)\n\n## Example\n\nTo export the local Apple media library to an iTunes-compatible XML, use the following snippet:\n\n```swift\nimport MusicLibrary\n\nlet importer = try LocalAppleMediaImporter()\nlet exporter = LibraryXMLExporter(filePath: \"path/to/output.xml\")\n\nlet library = try importer.readLibrary()\ntry exporter.write(library: library)\n```\n\nThe full example can be found [here](Snippets/AppleMediaToLibraryXML.swift).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fswift-music-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwcd%2Fswift-music-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fswift-music-library/lists"}