A command line tool to download the best matching subtitle from subdivx.com
Project description
A cli tool for download subtitle from www.subdivx.com with the better possible matching results.
Install
git clone https://github.com/Spheres-cu/subdx-dl.git
cd subdx-dl
python3 -m pip install .
OR
pip install -U subdx-dl
My recomendation is to use a virtual env and install it there:
mkdir subdx
python3 -m venv subdx
source subdx/bin/activate
then clone with git and install with all the dependencies among them:
pip install -r requirements.txt
Usage
usage: sdx-dl [-h or --help] [optional arguments] search
positional arguments:
search file, directory or movie/series title or IMDB Id to retrieve subtitles
optional arguments:
-h, --help Show this help message and exit.
--quiet, -q No verbose mode and very quiet. Applies even in verbose mode (-v).
--path, -p Path to download subtitles.
--verbose -v Be in verbose mode.
--no-choose, -nc Download the default match subtitle available. Show all the available subtitles to download is de default behavior.
--Season, -S Search for Season.
--force, -f Override existing subtitle file.
--version -V Show program version.
--title -t "<string>" _ Set the title to search instead of getting it from the file name. This option is invalid if --imdb is setting.
--keyword -k "<strings>" _ Add an <strings> to the list of keywords separated by spaces. Keywords are used when you search by filename.
--imdb -i IMDB_ID _ Search by IMDB id regardless filename, search strings or serie season.
Examples
Search a single TV-Show by: Title, Season number or simple show name:
$ sdx-dl "Abbot Elementary S04E01"
$ sdx-dl "Abbot Elementary 04x01"
$ sdx-dl "Abbot Elementary"
or search for complete Season:
sdx-dl -S "Abbot Elementary S04E01"
Search for a Movie by Title, Year or simple title, even by IMDB ID :
$ sdx-dl "Deadpool and Wolverine 2024"
$ sdx-dl "Deadpool 3"
$ sdx-dl tt6263850
Search by a file reference:
$ sdx-dl Harold.and.the.Purple.Crayon.2024.720p.AMZN.WEBRip.800MB.x264-GalaxyRG.mkv
$ sdx-dl --imdb tt13062500 -q The.Walking.Dead.Daryl.Dixon.S02E06.480p.x264-RUBiK.mkv
Search by IMDB id regardless filename, search strings keeping the serie season/number and in quiet mode.
Tips
-
Always try to search with Title, Year or season number for better results.
-
Search by filename reference.
Search in this way have advantage because the results are filtered and ordered by the metadata of the filename.
-
Try to pass the IMDB ID of the movie or TV Show.
-
Pass keywords (
--keyword -k "<str1 str2 str3 ...>"
) of the subtitle you are searching for better ordered results. -
If the search not found any records by a single chapter number (exe. S01E02) try search by the complete Seasson with
--Seasson -S
parameter. -
Very important!: You need to be installed some rar decompression tool for example: unrar (preferred), unar, 7zip or bsdtar. Otherwise, subtitle file will do not decompress.
Some Captures
- Performing search:
- Navigable searches results:
- Subtitle description:
-
User comments:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file subdx_dl-1.0.3.tar.gz
.
File metadata
- Download URL: subdx_dl-1.0.3.tar.gz
- Upload date:
- Size: 57.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f4fc0e42ea9bcfc1d95b68d97f0a8e14e1592b587c7dc6858d0fb776b83a1a |
|
MD5 | caa8516511c0210e29a2e0288570550e |
|
BLAKE2b-256 | 245bf04adc524031cbeb455069039f7707a5c94eb0fb19302587e6b635b2fa2f |
Provenance
The following attestation bundles were made for subdx_dl-1.0.3.tar.gz
:
Publisher:
python-publish.yml
on Spheres-cu/subdx-dl
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
subdx_dl-1.0.3.tar.gz
- Subject digest:
79f4fc0e42ea9bcfc1d95b68d97f0a8e14e1592b587c7dc6858d0fb776b83a1a
- Sigstore transparency entry: 148253353
- Sigstore integration time:
- Predicate type:
File details
Details for the file subdx_dl-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: subdx_dl-1.0.3-py3-none-any.whl
- Upload date:
- Size: 45.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782d3954b9b0bf9e5276b242bb9b4c03f4c41afa63a08763577c1317f02dee15 |
|
MD5 | 4f618872aed1613b2328aca0e73595e2 |
|
BLAKE2b-256 | 8c7a9fc1f83f387deb02fb7f62e7819c1ccc43a596d65095e00f1f873e38f0a0 |
Provenance
The following attestation bundles were made for subdx_dl-1.0.3-py3-none-any.whl
:
Publisher:
python-publish.yml
on Spheres-cu/subdx-dl
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
subdx_dl-1.0.3-py3-none-any.whl
- Subject digest:
782d3954b9b0bf9e5276b242bb9b4c03f4c41afa63a08763577c1317f02dee15
- Sigstore transparency entry: 148253354
- Sigstore integration time:
- Predicate type: