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.6 (2020-06-06)
- use guessit to parse the filename
- fix scraping the link by getting it from subtitle's detail page.
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 Distributions
Built Distribution
File details
Details for the file subdivx_download-0.6-py3-none-any.whl
.
File metadata
- Download URL: subdivx_download-0.6-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523ebe716f2bf986a93a41d7f8ee183ee50906c0d6a3fe7d3f870ee9c9ad9119 |
|
MD5 | 484d597a38e5b64a2b02b60ca522b0c2 |
|
BLAKE2b-256 | 4fbace1e15ece4ff65957d355bdd35ceb934147586afa24a226c28194f1b35d0 |