{"id":22993874,"url":"https://github.com/erizocosmico/subtitler","last_synced_at":"2025-07-15T01:10:15.274Z","repository":{"id":62456210,"uuid":"50189493","full_name":"erizocosmico/subtitler","owner":"erizocosmico","description":"Downloading subtitles with Swift","archived":false,"fork":false,"pushed_at":"2016-02-28T13:13:36.000Z","size":22,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-02T07:46:46.186Z","etag":null,"topics":["library","opensubtitles","subtitle","subtitles","swift"],"latest_commit_sha":null,"homepage":null,"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/erizocosmico.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}},"created_at":"2016-01-22T15:28:25.000Z","updated_at":"2025-02-28T12:04:04.000Z","dependencies_parsed_at":"2022-11-01T23:03:39.886Z","dependency_job_id":null,"html_url":"https://github.com/erizocosmico/subtitler","commit_stats":null,"previous_names":["mvader/subtitler"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/erizocosmico/subtitler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fsubtitler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fsubtitler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fsubtitler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fsubtitler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erizocosmico","download_url":"https://codeload.github.com/erizocosmico/subtitler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fsubtitler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265383746,"owners_count":23756587,"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":["library","opensubtitles","subtitle","subtitles","swift"],"created_at":"2024-12-15T05:15:27.558Z","updated_at":"2025-07-15T01:10:15.250Z","avatar_url":"https://github.com/erizocosmico.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subtitler\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n            )](http://mit-license.org)\n[![Platform](http://img.shields.io/badge/platform-iOS%20%26%20OSX-lightgrey.svg?style=flat\n             )](https://developer.apple.com/resources/)\n[![Language](http://img.shields.io/badge/language-swift-orange.svg?style=flat\n             )](https://developer.apple.com/swift)\n[![Cocoapod](http://img.shields.io/cocoapods/v/Subtitler.svg?style=flat)](http://cocoadocs.org/docsets/Subtitler/)\n\nSubtitler uses the API of [OpenSubtitles.org](http://opensubtitles.org) to retrieve subtitles for your movies and tv shows. Just give a path to the file to Subtitler, everything else is handled by it.\n\n**Note:** you will need your own user agent. More info about OpenSubtitles user agents [here](http://trac.opensubtitles.org/projects/opensubtitles/wiki/DevReadFirst).\n\n## Example\nDownload subtitles in english for `/Users/foo/Desktop/MyMovie.mp4`.\n\n```swift\nimport Subtitler\n\nlet s = Subtitler(lang:\"en\", userAgent:\"OSTestUserAgent\")\ns.download(\"/Users/foo/Desktop/MyMovie.mp4\") { result in\n\tswitch result {\n\tcase .Success(let subtitlesPath):\n\t\t// Do something with the subtitles\n\tcase .Failure(let error):\n\t\t// Handle error\n\t}\n}\n```\n\n#### Languages\n\nFor the languages of the subtitles, use the ISO639 code of the language.\n\nSubtitles are downloaded to the same path where the original file is and the same name but with `.srt` extension. In this case, the result would be `/Users/foo/Desktop/MyMovie.srt`.\n\n## Requirements \n* Mac OS X 10.10+ / iOS 8.0+\n* Xcode 7\n* libz\n\n## Install with CocoaPods\n\nUse this in your `Podfile`!\n\n```ruby\nuse_frameworks!\n\ntarget 'MyApp' do\n\tpod 'Subtitler', '0.2.0'\nend\n```\n\n## License\n\nSubtitler is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferizocosmico%2Fsubtitler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferizocosmico%2Fsubtitler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferizocosmico%2Fsubtitler/lists"}