{"id":13483658,"url":"https://github.com/akiicat/m3u8","last_synced_at":"2025-04-12T18:08:28.367Z","repository":{"id":49041033,"uuid":"118567817","full_name":"akiicat/m3u8","owner":"akiicat","description":"Generate and parse m3u8 playlists for HTTP Live Streaming (HLS) in Crystal.","archived":false,"fork":false,"pushed_at":"2025-02-28T13:29:05.000Z","size":672,"stargazers_count":14,"open_issues_count":1,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T18:06:55.048Z","etag":null,"topics":["crystal","generator","m3u8","parser"],"latest_commit_sha":null,"homepage":"https://akiicat.github.io/m3u8/","language":"Crystal","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/akiicat.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,"zenodo":null}},"created_at":"2018-01-23T06:27:33.000Z","updated_at":"2025-03-27T14:12:30.000Z","dependencies_parsed_at":"2025-04-12T18:06:59.479Z","dependency_job_id":null,"html_url":"https://github.com/akiicat/m3u8","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiicat%2Fm3u8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiicat%2Fm3u8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiicat%2Fm3u8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiicat%2Fm3u8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akiicat","download_url":"https://codeload.github.com/akiicat/m3u8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610343,"owners_count":21132921,"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":["crystal","generator","m3u8","parser"],"created_at":"2024-07-31T17:01:13.876Z","updated_at":"2025-04-12T18:08:28.344Z","avatar_url":"https://github.com/akiicat.png","language":"Crystal","funding_links":[],"categories":["Misc"],"sub_categories":[],"readme":"# m3u8\n\n[![Build Status](https://github.com/akiicat/m3u8/actions/workflows/crystal.yml/badge.svg)](https://github.com/akiicat/m3u8/actions)\n[![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://akiicat.github.io/m3u8)\n[![GitHub release](https://img.shields.io/github/release/akiicat/m3u8.svg)](https://github.com/akiicat/m3u8/releases)\n\nGenerate and parse m3u8 playlists for HTTP Live Streaming (HLS).\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  m3u8:\n    github: akiicat/m3u8\n```\n\n## Usage\n\n```crystal\nrequire \"m3u8\"\n\nmodule App\n  include M3U8\nend\n```\n\n[Document](https://akiicat.github.io/m3u8/)\n\n### Generate\n\n```crystal\nplaylist = Playlist.new\nplaylist.items \u003c\u003c SegmentItem.new(duration: 10.991, segment: \"test_01.ts\")\nplaylist.to_s\n```\n\n```\n#EXTM3U\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-TARGETDURATION:10\n#EXTINF:10.991,\ntest_01.ts\n#EXT-X-ENDLIST\n```\n\n### Parse\n\n```crystal\nfile = File.read \"spec/playlists/master.m3u8\"\nplaylist = Playlist.parse(file)\nplaylist.master? # =\u003e true\n```\n\n## Development\n\n### Supported Playlist Tags\n\n#### Basic Tags\n- [x] EXTM3U\n- [x] EXT-X-VERSION\n\n#### media segment tags\n- [x] EXTINF\n- [x] EXT-X-BYTERANGE\n- [x] EXT-X-DISCONTINUITY\n- [x] EXT-X-KEY\n- [x] EXT-X-MAP\n- [x] EXT-X-PROGRAM-DATE-TIME\n- [x] EXT-X-DATERANGE\n\n#### Media Playlist Tags\n- [x] EXT-X-TARGETDURATION\n- [x] EXT-X-MEDIA-SEQUENCE\n- [x] EXT-X-DISCONTINUITY-SEQUENCE\n- [x] EXT-X-ENDLIST\n- [x] EXT-X-PLAYLIST-TYPE\n- [x] EXT-X-I-FRAMES-ONLY\n- [x] EXT-X-ALLOW-CACHE (was removed in protocol version 7)\n\n#### Master Playlist Tags\n- [x] EXT-X-MEDIA\n- [x] EXT-X-STREAM-INF\n- [x] EXT-X-I-FRAME-STREAM-INF\n- [x] EXT-X-SESSION-DATA\n- [x] EXT-X-SESSION-KEY\n\n#### Media or Master Playlist Tags\n- [x] EXT-X-INDEPENDENT-SEGMENTS\n- [x] EXT-X-START\n\n#### Experimental Tags\n- [ ] EXT-X-CUE-OUT\n- [ ] EXT-X-CUE-OUT-CONT\n- [ ] EXT-X-CUE-IN\n- [ ] EXT-X-CUE-SPAN\n- [ ] EXT-OATCLS-SCTE35\n\n## Contributing\n\n1. Fork it ( https://github.com/akiicat/m3u8/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Akiicat](https://github.com/akiicat) Akiicat - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiicat%2Fm3u8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakiicat%2Fm3u8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiicat%2Fm3u8/lists"}