subsystem
This script is intended to be a one-stop-shop for batch preparing freshly downloaded video files for use with subtitles.
The tool can be used from the command-line but is ideal for use via GUI file managers (i.e. Thunar Custom Actions or Nautilus actions.). With a single click of several video files: prompt to rename files, download the best subtitle file available (displaying a popup notification upon failure), then open a terminal window to scan and remove advertising (via subnuker).
If you have some experience downloading subtitles with other tools, you are in for a pleasant surprise. Not only does it pack a wicked set of features, but it makes full use your processor to download subtitles in parallel… superfast.
Installation
subsystem is compatible with Python 3. To install to the Python user install directory for your platform, typically $HOME/.local/:
pip3 install --user subsystem
If installing with the --user flag, ensure that $HOME/.local/bin is on your PATH.
Requirements
A GTK dialog tool (yad or zenity) is required if you’d like to make use of the GUI renamer.
yad is the recommmended tool. It is available via tarball (at it’s homepage) or webupd8team PPA (Launchpad):
sudo apt-add-repository ppa:nilarimogard/webupd8 sudo apt-get update && sudo apt-get install yad
In order to make use of subsystem, you’ll need to install a downloader. I recommend the Python 3 compatible ss. In my experience it is the fastest and most reliable tool available.
pip3 install --user ss
subsystem is also compatible with the Python 2 scripts periscope and subscope
pip2 install --user periscope
pip2 install --user subscope
Usage
>From the command line, run subsystem --help to display available options and downloaders. subsystem will use ss by default if possible, otherwise it will detect and use whatever is available.
To download subtitles for files:
subsystem FILE...
To use an alternate downloader:
subsystem -d DOWNLOADER FILE...
To rename video files prior to download of subtitles:
subsystem --rename FILE...
To scan subtitles files with subnuker upon download completion:
subsystem --scan FILE...
Executing subsystem with the --scan option from a GUI will open subnuker in a terminal window. It is configured to use xfce4-terminal. Let me know if you’d like to support another terminal and I’ll add the feature.
To silence notify-send notications upon failure:
subsystem --quiet FILE...
Note: Multiple command line options may be used concurrently
License
Copyright (c) 2015 Six (brbsix@gmail.com).
Licensed under the GPLv3 license.
Metadata
Release files for subsystem 0.5.4
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 |
|---|---|---|---|---|
| subsystem-0.5.4.tar.gz | 7.8 kB | Without provenance | Details for subsystem-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subsystem-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for subsystem-0.5.4-py3-none-any.whl |
Total release size: 18.7 kB
Release files / subsystem-0.5.4.tar.gz
| Download URL | subsystem-0.5.4.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6acad3bc1ed9e1b8ad372bd9a30b954607180a59b3d5300ec53869d61c70966c
|
|
BLAKE2b-256 checksum How to use checksums |
b05cfb304576590161e6ea8e950b16bae010c53eea3ffb0dc07ad8d37bb270d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / subsystem-0.5.4-py3-none-any.whl
| Download URL | subsystem-0.5.4-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13f078e41da989eed4f2ce8aa6db3141368338bcc99414853be0156692a2a1e8
|
|
BLAKE2b-256 checksum How to use checksums |
4be9128436454d345666bfff42182631f0f42c28007079afb65a026e63249cfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for subsystem 0.5.4
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.