Skip to content

Commit

Permalink
swap init.d for requirements.txt, add missing LIECENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
yajrendrag committed Jan 11, 2024
1 parent ecc3bbb commit c1502ae
Show file tree
Hide file tree
Showing 6 changed files with 695 additions and 3 deletions.
674 changes: 674 additions & 0 deletions source/keep_only_video_and_audio_streams/LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions source/keep_only_video_and_audio_streams/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

**<span style="color:#56adda">0.0.7</span>**
- remove requirements.txt content
- change to init.d based plugin installation
- add missing LICENSE file

**<span style="color:#56adda">0.0.6</span>**
- specify numpy version

Expand Down
5 changes: 5 additions & 0 deletions source/keep_only_video_and_audio_streams/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ Each subtitle stream will be saved with the name of the file and extension of ".
video_file.mkv, and has eng and spa subtitles, the subtitle files will be name video_file.eng.srt and video_file.spa.srt.
If any subtitle stream does not have a language code, the language code in the name will be replaced by the absolute stream number, e.g.
if the 4th stream in the file is a subtitle with no language code it will be saved as video_file.3.srt (ffmpeg numbers streams starting at 0).
---
### Installation Notes
This plugin uses init.d folder to install plugin. After installing the plugin you will notice an error in the unmanic.log file about being
unable to locate ffsubsync. This is normal given the installation method. After installing the plugin, restart the unmanic container. If however, your unmanic installation is pip installed on bare metal, then you can avoid this step by doing pip install ffsubsync before installing
the plugin.
2 changes: 1 addition & 1 deletion source/keep_only_video_and_audio_streams/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"on_worker_process": 2
},
"tags": "audio,ffmpeg,library file test",
"version": "0.0.6"
"version": "0.0.7"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Script is executed by the Unmanic container on startup to auto-install dependencies

if ! command -v ffsubsync &> /dev/null; then
echo "**** Installing ffsubsync ****"
python3 -m pip install ffsubsync
else
echo "**** ffsubsync already installed ****"
fi
2 changes: 0 additions & 2 deletions source/keep_only_video_and_audio_streams/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
numpy==1.26.3;python_version>='3.10'
ffsubsync

0 comments on commit c1502ae

Please sign in to comment.