A command line tool to download the best matching subtitle from subdivx.com
Project description
Subdx-dl
A cli tool for download subtitle from www.subdivx.com with the better possible matching results.
Install
pip install -U subdx-dl
For testing use a virtual env and install it there
For linux:
mkdir subdx
python3 -m venv subdx
source subdx/bin/activate
git clone https://github.com/Spheres-cu/subdx-dl.git
cd subdx-dl
pip install -e .
For Windows:
mkdir subdx
python -m venv subdx
.\subdx\Scripts\activate
git clone https://github.com/Spheres-cu/subdx-dl.git
cd subdx-dl
pip install -e .
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
Download:
--path PATH, -p PATH Path to download subtitles
--quiet, -q No verbose mode
--verbose, -v Be in verbose mode
--force, -f override existing file
--no-choose, -nc No Choose sub manually
--no-filter, -nf Do not filter search results
--proxy PROXY, -P PROXY Set a http(s) proxy connection
Search by:
--Season, -S Search for Season
--keyword KEYWORD, -k KEYWORD Add keyword to search among subtitles
--title TITLE, -t TITLE Set the title of the show
IMDB search:
Search in IMDB by ID or title
--search-imdb, -si Search first for the IMDB id or title
--imdb IMDB, -i IMDB Search by IMDB id
Information:
--version, -V Show program version
--check-version, -cv Check for new version
Examples
Search a single TV-Show by: Title, Season number or simple show name:
sdx-dl "Abbott Elementary S04E01"
sdx-dl "Abbott Elementary 04x01"
sdx-dl "Abbott Elementary"
or search for complete Season:
sdx-dl -S "Abbott 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.
Search first for the IMDB ID or correct tv show Title if don't know they name or it's in another language:
sdx-dl --search-imdb "Los Caza fantasmas"
sdx-dl -si "Duna S1E3"
- IMDB search:
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 -Sparameter. -
If you don't wanna filter the search results for a better match and, instead, improved response time use
--no-filter -nfargument. -
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subdx_dl-1.7.1.tar.gz.
File metadata
- Download URL: subdx_dl-1.7.1.tar.gz
- Upload date:
- Size: 69.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0e2ada3fc57260d668fe982e9e19642c9aeac60aa68b5ba0966a6b68f90de7a
|
|
| MD5 |
bc38b9f96c15eb8d2d5712ae7053e861
|
|
| BLAKE2b-256 |
72637583a53be41aa38426253b2f8caff295c7443010fd23eff5257494564b3a
|
Provenance
The following attestation bundles were made for subdx_dl-1.7.1.tar.gz:
Publisher:
python-publish.yml on Spheres-cu/subdx-dl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subdx_dl-1.7.1.tar.gz -
Subject digest:
f0e2ada3fc57260d668fe982e9e19642c9aeac60aa68b5ba0966a6b68f90de7a - Sigstore transparency entry: 190509698
- Sigstore integration time:
-
Permalink:
Spheres-cu/subdx-dl@38fc0e2dfa3f6f3e7790c5f84cbe5e1b0b3b1de3 -
Branch / Tag:
refs/tags/1.7.1 - Owner: https://github.com/Spheres-cu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@38fc0e2dfa3f6f3e7790c5f84cbe5e1b0b3b1de3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file subdx_dl-1.7.1-py3-none-any.whl.
File metadata
- Download URL: subdx_dl-1.7.1-py3-none-any.whl
- Upload date:
- Size: 57.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d16ca60d0184133683befd291829459da296b10785fc976bb16d58fb8dd42ef5
|
|
| MD5 |
c9d2a9b71d0b5f66ccb83dbfebb75562
|
|
| BLAKE2b-256 |
16bb6a2ff822c4d3cb3658004be669a8365a374a1ef574b3cb2300ab1088b9e4
|
Provenance
The following attestation bundles were made for subdx_dl-1.7.1-py3-none-any.whl:
Publisher:
python-publish.yml on Spheres-cu/subdx-dl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subdx_dl-1.7.1-py3-none-any.whl -
Subject digest:
d16ca60d0184133683befd291829459da296b10785fc976bb16d58fb8dd42ef5 - Sigstore transparency entry: 190509707
- Sigstore integration time:
-
Permalink:
Spheres-cu/subdx-dl@38fc0e2dfa3f6f3e7790c5f84cbe5e1b0b3b1de3 -
Branch / Tag:
refs/tags/1.7.1 - Owner: https://github.com/Spheres-cu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@38fc0e2dfa3f6f3e7790c5f84cbe5e1b0b3b1de3 -
Trigger Event:
push
-
Statement type: