Skip to main content

A command line tool to download the best matching subtitle from subdivx.com

Project description

PyPI - Downloads PyPI - Python Version GitHub Release PyPI - Version GitHub License GitHub User's stars

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.
--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.
--search-imdb, -si    Search first for the IMDB id or title.
--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 "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:

![IMDB search film]

![IMDB search film reults]

![IMDB search TV show]

![IMDB search TV show results]

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:

Performing search

  • Navigable searches results:

Navigable searches results

  • Subtitle description:

Subtitle description

  • User comments:

![Subtitle description]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subdx_dl-1.0.8.tar.gz (66.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subdx_dl-1.0.8-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file subdx_dl-1.0.8.tar.gz.

File metadata

  • Download URL: subdx_dl-1.0.8.tar.gz
  • Upload date:
  • Size: 66.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for subdx_dl-1.0.8.tar.gz
Algorithm Hash digest
SHA256 e0b3d510eb52b938a68993ef5001cf1f75629b5f0a23f32d7349ede48967059a
MD5 7d8b5a5eabe72d43573cac79ef2d28e7
BLAKE2b-256 fe6fc726e76cf1e24b181547417db21391e2b6afc13c0c000a40ecc596af6a56

See more details on using hashes here.

Provenance

The following attestation bundles were made for subdx_dl-1.0.8.tar.gz:

Publisher: python-publish.yml on Spheres-cu/subdx-dl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file subdx_dl-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: subdx_dl-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for subdx_dl-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8a04fd3d1ea66e30d65a7591305293b856a1131cd525889f983a33c7f13bf1cc
MD5 0e1e4dbf8cbfef862a8d60e1369bc43c
BLAKE2b-256 d579496af739256577b9f263f11fe14e1e1bd60c1f4ed58d5f9e0d405c1a4673

See more details on using hashes here.

Provenance

The following attestation bundles were made for subdx_dl-1.0.8-py3-none-any.whl:

Publisher: python-publish.yml on Spheres-cu/subdx-dl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page