Metadata-Version: 2.1
Name: srtoffset
Version: 0.1.2
Summary: Apply a time offset to a subtitle .srt file
Home-page: https://github.com/brouberol/srtoffset
License: MIT
Author: Balthazar Rouberol
Author-email: br@imap.cc
Requires-Python: >=3.5,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Project-URL: Repository, https://github.com/brouberol/srtoffset
Description-Content-Type: text/markdown

[![Build Status](https://travis-ci.org/brouberol/srtoffset.svg?branch=master)](https://travis-ci.org/brouberol/srtoffset) [![Coverage Status](https://coveralls.io/repos/github/brouberol/srtoffset/badge.svg?branch=master)](https://coveralls.io/github/brouberol/srtoffset?branch=master)

Apply a time offset to a subtitle .srt file.

Example:

```console
$ cat ~/example.srt
1
00:00:01,600 --> 00:00:04,200
English (US)

2
00:00:05,900 --> 00:00:07,999
This is a subtitle in American English

3
00:00:10,000 --> 00:00:14,000
Adding subtitles is very easy to do
$ srtoffset ~/example.srt '00:00:05,500'
1
00:00:07,100 --> 00:00:09,700
English (US)

2
00:00:11,400 --> 00:00:13,499
This is a subtitle in American English

3
00:00:15,500 --> 00:00:19,500
Adding subtitles is very easy to do
$ srtoffset ~/example.srt '00:00:01,000' --rewind
1
00:00:00,600 --> 00:00:03,200
English (US)

2
00:00:04,900 --> 00:00:06,999
This is a subtitle in American English

3
00:00:09,000 --> 00:00:13,000
Adding subtitles is very easy to do
```

## Setup the dev environment

```console
$ poetry install
```

## Run the tests

```console
$ poetry run pytest
```

