{"id":25065473,"url":"https://github.com/podlove/chapters","last_synced_at":"2025-07-28T05:04:16.249Z","repository":{"id":56841820,"uuid":"179035580","full_name":"podlove/chapters","owner":"podlove","description":"Elixir library to parse and format podcast chapters marks","archived":false,"fork":false,"pushed_at":"2019-07-12T10:07:17.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-17T17:53:49.066Z","etag":null,"topics":["elixir","elixir-library","podcasting"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/podlove.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-04-02T08:43:53.000Z","updated_at":"2025-06-28T10:35:54.000Z","dependencies_parsed_at":"2022-08-29T07:42:06.157Z","dependency_job_id":null,"html_url":"https://github.com/podlove/chapters","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/podlove/chapters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podlove%2Fchapters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podlove%2Fchapters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podlove%2Fchapters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podlove%2Fchapters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/podlove","download_url":"https://codeload.github.com/podlove/chapters/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podlove%2Fchapters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267186129,"owners_count":24049583,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["elixir","elixir-library","podcasting"],"created_at":"2025-02-06T19:27:18.357Z","updated_at":"2025-07-28T05:04:16.219Z","avatar_url":"https://github.com/podlove.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chapters\n\n[![Build Status](https://travis-ci.org/podlove/chapters.svg?branch=master)](https://travis-ci.org/podlove/chapters)\n\n[Online Documentation](https://hexdocs.pm/chapters).\n[Github Changelog](https://github.com/podlove/chapters/blob/master/CHANGELOG.md)\n\n\u003c!-- MDOC !--\u003e\n\nPodcast chapter parser and formatter.\n\nSupports:\n\n- [Podlove Simple Chapters](https://podlove.org/simple-chapters/) (xml/psc)\n- mp4chaps\n- JSON\n\n[Changelog](changelog.html)\n\n## Basic Usage\n\nDecode from mp4chaps\n\n```elixir\niex(1)\u003e chapters = Chapters.decode(~S\"\"\"\n...(1)\u003e 00:00:00 Intro\n...(1)\u003e 00:01:59 Podlove \u003chttp://podlove.org/\u003e\n...(1)\u003e \"\"\", :mp4chaps)\n[\n  %Chapters.Chapter{href: nil, image: nil, start: 0, title: \"Intro\"},\n  %Chapters.Chapter{\n    href: \"http://podlove.org/\",\n    image: nil,\n    start: 119000,\n    title: \"Podlove\"\n  }\n]\n\n```\n\nEncode to PSC\n\n```elixir\niex\u003e Chapters.encode(chapters, :psc) |\u003e IO.puts                 \n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cpsc:chapters version=\"1.2\" xmlns:psc=\"http://podlove.org/simple-chapters\"\u003e\n  \u003cpsc:chapter start=\"00:00:00.000\" title=\"Intro\"/\u003e\n  \u003cpsc:chapter start=\"00:01:59.000\" title=\"Podlove\" href=\"http://podlove.org/\"/\u003e\n\u003c/psc:chapters\u003e\n```\n\nEncode to mp4chaps\n\n```elixir\niex\u003e Chapters.encode(chapters, :mp4chaps) |\u003e IO.puts\n00:00:00.000 Intro\n00:01:59.000 Podlove \u003chttp://podlove.org/\u003e\n```\n\nEncode to JSON\n\n```elixir\niex\u003e Chapters.encode(chapters, :json) |\u003e IO.puts                \n[{\"start\":\"00:00:00.000\",\"title\":\"Intro\"},{\"start\":\"00:01:59.000\",\"title\":\"Podlove\",\"href\":\"http://podlove.org/\"}]\n```\n\n\u003c!-- MDOC !--\u003e\n\n## Installation\n\nThe package can be installed by adding `chapters` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:chapters, \"~\u003e 1.0\"}\n  ]\nend\n```\n\n## License\n\nChapters is [MIT Licensed][license].\n\n[license]: https://github.com/podlove/chapters/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodlove%2Fchapters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpodlove%2Fchapters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodlove%2Fchapters/lists"}