Apply a time offset to a subtitle .srt file.
Example:
$ 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
$ poetry install
Run the tests
$ poetry run pytest
Metadata
Release files for srtoffset 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| srtoffset-0.1.2.tar.gz | 4.1 kB | Without provenance | Details for srtoffset-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| srtoffset-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for srtoffset-0.1.2-py3-none-any.whl |
Total release size: 8.6 kB
Release files / srtoffset-0.1.2.tar.gz
| Download URL | srtoffset-0.1.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ec1d9117f8fb4900e2661e6276e159462fa142c0457753031e7ee81eaa3445b
|
|
BLAKE2b-256 checksum How to use checksums |
5815e203339d8c0f7d188eaea1e39185f22baaa5b468d3d08fdcccff8b694aab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.6.10-300.fc32.x86_64
|
Release files / srtoffset-0.1.2-py3-none-any.whl
| Download URL | srtoffset-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93efb0b42184961a248d8414ca379f21f7f199d2d7baee8e2b57382a829c3010
|
|
BLAKE2b-256 checksum How to use checksums |
fc2e6619fabdee504eb90759c0230dc8a33aa8e2fca283913d288c6709dbb909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.6.10-300.fc32.x86_64
|
Security for srtoffset 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.