Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugin extract_ass_subtitles_to_files and update to extract_srt_subtitles_to_files #425

Merged
merged 6 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/extract_ass_subtitles_to_files/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/__pycache__
*.py[cod]
**/site-packages
settings.json
674 changes: 674 additions & 0 deletions source/extract_ass_subtitles_to_files/LICENSE

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions source/extract_ass_subtitles_to_files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Extract text subtitle streams to ASS/SSA files
Plugin for [Unmanic](https://github.com/Unmanic)

---

### Information:

- [Description](description.md)
- [Changelog](changelog.md)
37 changes: 37 additions & 0 deletions source/extract_ass_subtitles_to_files/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
**<span style="color:#56adda">0.0.11</span>**
- Added .unmanic file

**<span style="color:#56adda">0.0.9</span>**
- Add settings to specify:
- Which languages to extract
- Whether to include "title" in output file name

**<span style="color:#56adda">0.0.8</span>**
- Add library tester to search for files with SRT streams
- Update FFmpeg helper

**<span style="color:#56adda">0.0.7</span>**
- Update FFmpeg helper
- Add platform declaration

**<span style="color:#56adda">0.0.6</span>**
- Update Plugin for Unmanic v2 PluginHandler compatibility

**<span style="color:#56adda">0.0.5</span>**
- Fix bug in stream mapping causing subtitles from the previous file being added to the command of the current file

**<span style="color:#56adda">0.0.4</span>**
- Limit plugin to only process files with a "video" mimetype
- Remove support for older versions of Unmanic (requires >= 0.1.0)
- Fix issue when creating SRT file naming (TypeError: expected string or bytes-like object)
- Add better debug logging

**<span style="color:#56adda">0.0.3</span>**
- Fix import issue in plugin file

**<span style="color:#56adda">0.0.2</span>**
- Update Plugin for Unmanic v1 PluginHandler compatibility
- Update icon

**<span style="color:#56adda">0.0.1</span>**
- Initial version
11 changes: 11 additions & 0 deletions source/extract_ass_subtitles_to_files/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

Any ASS/SSA subtitle streams found in the file will be exported as *.ass files in the same directory as the original file.

:::warning
This plugin is not compatible with linking as the remote link will not have access to the original source file's directory.
:::

:::note
This Plugin does not contain a file tester to detect files that contain ASS/SSA subtitle streams.
Ensure it is pared with another Plugin.
:::
Binary file added source/extract_ass_subtitles_to_files/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions source/extract_ass_subtitles_to_files/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"author": "Josh.5, Bambanah, soultaco83",
"compatibility": [
1,
2
],
"description": "Extract text based subtitle streams to *.ass files.",
"icon": "https://raw.githubusercontent.com/Josh5/unmanic.plugin.extract_srt_subtitles_to_files/master/icon.png",
"id": "extract_ass_subtitles_to_files",
"name": "Extract text subtitle streams to ASS/SSA files",
"platform": [
"all"
],
"priorities": {
"on_worker_process": 2
},
"tags": "subtitle,ffmpeg",
"version": "0.0.11"
}
23 changes: 23 additions & 0 deletions source/extract_ass_subtitles_to_files/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
plugins.__init__.py

Written by: Josh.5 <[email protected]>
Date: 23 Aug 2021, (00:03 PM)

Copyright:
Copyright (C) 2021 Josh Sunnex

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program.
If not, see <https://www.gnu.org/licenses/>.

"""
Loading
Loading