{"id":32630767,"url":"https://github.com/tfmart/tagcleaner","last_synced_at":"2026-02-01T16:05:38.030Z","repository":{"id":251778653,"uuid":"835062592","full_name":"tfmart/TagCleaner","owner":"tfmart","description":"Swift package for cleaning music metadata tags. Removes extraneous information from titles, albums, and artist fields.","archived":false,"fork":false,"pushed_at":"2024-08-05T15:52:48.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T22:54:27.676Z","etag":null,"topics":["apple","ios","ipados","macos","music","property-wrapper","regex-builder","swift","tagging","tvos","watchos"],"latest_commit_sha":null,"homepage":"","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/tfmart.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":"2024-07-29T04:55:34.000Z","updated_at":"2024-08-05T20:10:48.000Z","dependencies_parsed_at":"2024-08-05T18:38:57.293Z","dependency_job_id":null,"html_url":"https://github.com/tfmart/TagCleaner","commit_stats":null,"previous_names":["tfmart/tagcleaner"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tfmart/TagCleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FTagCleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FTagCleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FTagCleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FTagCleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfmart","download_url":"https://codeload.github.com/tfmart/TagCleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FTagCleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28981893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T15:35:50.179Z","status":"ssl_error","status_checked_at":"2026-02-01T15:35:38.075Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","ios","ipados","macos","music","property-wrapper","regex-builder","swift","tagging","tvos","watchos"],"created_at":"2025-10-30T22:53:16.543Z","updated_at":"2026-02-01T16:05:38.025Z","avatar_url":"https://github.com/tfmart.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TagCleaner\n\nTagCleaner is a Swift package that provides a robust solution for cleaning and standardizing music metadata tags. It offers a set of filters to remove common extraneous information from song titles, album names, and other music-related text.\n\n## Features\n\n- Multiple built-in filters for common tag cleaning tasks\n- Customizable filter application\n- Easy to use API\n- Support for iOS, macOS, watchOS, and tvOS\n\n## Inspiration\n\nTagCleaner is inspired by and based on the work of [Web Scrobbler's metadata-filter](https://github.com/web-scrobbler/metadata-filter). It's essentially a Swift port of this JavaScript library, adapted for use in Apple's ecosystem.\n\n## How It Works\n\nTagCleaner uses a combination of RegexBuilder patterns and Swift's string manipulation capabilities to clean music metadata. It includes filters for:\n\n- Explicit/Clean labels\n- Featured artists\n- Remastered versions\n- Reissues\n- Remixes\n- Singles and EPs\n- Bonus tracks\n- Live recordings\n- Parodies\n- Version information\n- YouTube-specific tags\n- And more!\n\n## Installation\n\n### Swift Package Manager\n\n1. In Xcode, select \"File\" → \"Swift Packages\" → \"Add Package Dependency\"\n2. Enter the repository URL: `https://github.com/yourusername/TagCleaner.git`\n3. Select the version you want to use\n\nAlternatively, you can add it to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/yourusername/TagCleaner.git\", from: \"1.0.0\")\n]\n```\n\n## Usage\n\nHere's a basic example of how to use TagCleaner:\n\n```swift\nimport TagCleaner\n\nlet cleaner = TagCleaner()\nlet cleanedTitle = cleaner.apply(\"Song Title (Remastered 2021) [feat. Another Artist]\", filter: FilterDirectory.releaseInformation)\nprint(cleanedTitle) // Outputs: \"Song Title\"\n```\n\nYou can also use the `@TCFilteredString` property wrapper for automatic cleaning:\n\n```swift\nstruct Song {\n    @TCFilteredString(filters: \n        FilterDirectory.releaseInformation.remaster,\n        FilterDirectory.artistInformation.featuredArtists\n    )\n    var title: String = \"\"\n}\n\nlet song = Song(title: \"Song Title (Remastered 2021) [feat. Another Artist]\")\nprint(song.title) // Outputs: \"Song Title\"\n```\n\n## System Requirements\n\n- iOS 16.0+\n- macOS 13.0+\n- watchOS 9.0+\n- tvOS 16.0+\n- Swift 5.7+\n\n## License\n\nTagCleaner is released under the MIT License. See the LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfmart%2Ftagcleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfmart%2Ftagcleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfmart%2Ftagcleaner/lists"}