Skip to main content

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

Project description

A fork of Michel Peterson's subdivx.com-subtitle-retriever Retrieve the best matching subtitle (in spanish) for a show episode from subdivx.com

This fork simplify the way to use a stand-alone program, allowing give a path (a filename or directory) as unique parameter and also changed the algorithm to find the "best match" subtitle.

Also added these features:

  • Unpack rared subtitles beside zipped ones
  • Rename subtitles after unpack it
  • Packaging. pip installable setup.py and code modularized
  • Can retrieve subtitles for partially downloaded files (*.part, *.temp, *.tmp)

Install

You can install it using pip:

$ pip3 install --user subdivx-download

or the development version:

$ pip3 install --user -U git+https://github.com/mgaitan/subdivx-download.git

Usage

usage: subdivx [-h] [--quiet] [--skip SKIP] [--force] path

positional arguments:
  path                  file or directory to retrieve subtitles

optional arguments:
  -h, --help            show this help message and exit
  --quiet, -q
  --skip SKIP, -s SKIP  skip from head
  --force, -f           override existing file


.. tip::

    Run ``subdivx`` before ``tvnamer`` to give more metadata
    in your subtitle seach

Changelog

0.5 (2019-04-23)

  • Changed best matching algorithm by a simpler [Martin Gaitan]
  • Cleanup. exclude results not matching the title. [Martin Gaitan]

0.4 (2017-08-25)

  • Gitignore. [Martin Gaitan]

  • Still alive. [Martin Gaitan]

  • Force flag. [Martín Gaitán]

  • Merge pull request #1 from p4bloch/master. [Martín Gaitán]

    Update smarter.py

  • Update smarter.py. [p4bloch]

  • Merge branch 'master' of https://github.com/nqnwebs/subdivx.com- subtitle-retriever. [Martín Gaitán]

  • Log storage handled automatically (workaround to no permission issue when it's installed as system package) [Martín Gaitán]

  • Epic copy&paste fix. [Martín Gaitán]

  • Added --skip parameter. [Martín Gaitán]

  • Readme updates. [Martín Gaitán]

  • Can retrieve subtitles for partially downloaded videos (with extension .part, .temp or .tmp) [Martín Gaitán]

  • Rename after unpack. better readme. tag 0.2.2. [Martín Gaitán]

  • More robustness on extra meta data. [Martín Gaitán]

  • Version 0.2.1. [Martín Gaitán]

  • Now the argument could be a directory. retrieve a subtitle for each video there if doesn't exist. [Martín Gaitán]

  • Changed url to this fork. [Martín Gaitán]

  • Tag version in setup.py. [Martín Gaitán]

  • Use tvnamer and some simple parsing to retrieve the best matching subtitle for an episode filename. Instead of many mandatory argument now you can pass just the filename of your video. [Martín Gaitán]

  • Packaging and spliting into a lib and executable. [Martín Gaitán]

  • Unpack rared subtitles with external tool unrar. [Martín Gaitán]

  • Better logging information. [Michel Peterson]

  • A little bit of pythonification. [Michel Peterson]

  • Respect import ordering. [Michel Peterson]

  • Removed debugging lines. [Michel Peterson]

  • Get_subtitle_archive(...) renamed to get_subtitle(...) [Michel Peterson]

  • Removed newlines at eof. [Michel Peterson]

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

subdivx-download-0.5.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

subdivx_download-0.5-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file subdivx-download-0.5.tar.gz.

File metadata

  • Download URL: subdivx-download-0.5.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for subdivx-download-0.5.tar.gz
Algorithm Hash digest
SHA256 d218424d7de228289dc4f82abb60adc22e9fa822313a62ebf0d8a0630247f80b
MD5 6bef2cf09b7b9a6c9830a1f752d4f8e3
BLAKE2b-256 97020156a405c31ba65fbf71264dc308232c9ca9fe1bf7686a9c12a27251449f

See more details on using hashes here.

File details

Details for the file subdivx_download-0.5-py3-none-any.whl.

File metadata

  • Download URL: subdivx_download-0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for subdivx_download-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c568e121cb58e4b1d0d2de1c0d9f32803493c547d32a619b8c711b7eb8bf814
MD5 a22c17d928cf4ccaedece71562a36fa0
BLAKE2b-256 f686df3c0367a7752281e3330bdf8c41c261a538e24d2c05cc3466b28820298d

See more details on using hashes here.

Supported by

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