-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbe385b
commit 72e53fd
Showing
3 changed files
with
62 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
This is free and unencumbered software released into the public domain. | ||
Copyright (c) 2012-2023 Audel Rouhi | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <http://unlicense.org/> | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,69 @@ | ||
# Subshift | ||
|
||
![PyPI - Version](https://img.shields.io/pypi/v/subshift) | ||
![PyPI - Downloads](https://img.shields.io/pypi/dd/subshift) | ||
![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/subshift) | ||
![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/subshift) | ||
![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/subshift) | ||
![PyPI - License](https://img.shields.io/pypi/l/subshift) | ||
![GitHub](https://img.shields.io/github/license/Knuckles-Team/subshift) | ||
|
||
![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/subshift) | ||
![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/subshift) | ||
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/subshift) | ||
![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/subshift) | ||
|
||
![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/subshift) | ||
![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/subshift) | ||
![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/subshift) | ||
![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/subshift) | ||
![PyPI - Wheel](https://img.shields.io/pypi/wheel/subshift) | ||
![PyPI - Implementation](https://img.shields.io/pypi/implementation/subshift) | ||
|
||
*Version: 0.7.0* | ||
|
||
A handy Python library to shift your subtitles +/- seconds so they align with your video | ||
|
||
### Usage: | ||
This repository is actively maintained - Contributions are welcome! | ||
|
||
<details> | ||
<summary><b>Usage:</b></summary> | ||
|
||
| Short Flag | Long Flag | Description | | ||
| --- | ------|--------------------------| | ||
| -h | --help | See Usage | | ||
| -f | --file | Subtitle File | | ||
| -m | --mode | + / - | | ||
| -t | --time | Time in seconds to shift | | ||
|
||
### Example: | ||
</details> | ||
|
||
<details> | ||
<summary><b>Example:</b></summary> | ||
|
||
```bash | ||
python3 subshift.py --file English.srt --mode + --time 5 | ||
``` | ||
|
||
#### Install Instructions | ||
</details> | ||
|
||
<details> | ||
<summary><b>Installation Instructions:</b></summary> | ||
|
||
Install Python Package | ||
|
||
```bash | ||
python -m pip install subshift | ||
``` | ||
|
||
#### Build Instructions | ||
Build Python Package | ||
</details> | ||
|
||
```bash | ||
sudo chmod +x ./*.py | ||
sudo pip install . | ||
python3 setup.py bdist_wheel --universal | ||
# Test Pypi | ||
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u "Username" -p "Password" | ||
# Prod Pypi | ||
twine upload dist/* --verbose -u "Username" -p "Password" | ||
``` | ||
<details> | ||
<summary><b>Repository Owners:</b></summary> | ||
|
||
|
||
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" /> | ||
|
||
![GitHub followers](https://img.shields.io/github/followers/Knucklessg1) | ||
![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1) | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters