Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rossnomann/srtparse
A library for reading SRT Subtitles
https://github.com/rossnomann/srtparse
rust srt subtitles
Last synced: about 2 months ago
JSON representation
A library for reading SRT Subtitles
- Host: GitHub
- URL: https://github.com/rossnomann/srtparse
- Owner: rossnomann
- License: mit
- Created: 2016-12-01T21:16:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T18:09:29.000Z (8 months ago)
- Last Synced: 2024-10-06T19:19:10.317Z (3 months ago)
- Topics: rust, srt, subtitles
- Language: Rust
- Homepage:
- Size: 62.5 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# srtparse
A library for parsing [SRT Subtitles][1].
[![GitHub CI Status](https://img.shields.io/github/actions/workflow/status/rossnomann/srtparse/ci.yml?style=flat-square)](https://github.com/rossnomann/srtparse/actions/)
[![Downloads](https://img.shields.io/crates/d/srtparse.svg?style=flat-square)](https://crates.io/crates/srtparse/)
[![Documentation](https://img.shields.io/badge/docs-latest-yellowgreen.svg?style=flat-square)](https://docs.rs/srtparse)## Changelog
### 0.2.0 (30.03.2020)
- Switched to 2018 edition.
- Renamed `Subtitle` to `Item`.
- Changed type of subtitle's `start_time` and `end_time` to `Time`.
(You still able to convert it to `Duration`.)
- Renamed `parse` function to `from_str`.
- Renamed `read_from_file` function to `from_file`.
- Added `from_reader` function.
- Removed `Result` alias.
- `Error` struct replaced by a bunch of different structs.### 0.1.1 (04.12.2016)
- Fixed time parsing.
### 0.1.0 (03.12.2016)
- First release.
## LICENSE
The MIT License (MIT)
[1]: https://www.matroska.org/technical/subtitles.html#srt-subtitles