cli program for subtitles download from OpenSubtitles
Project description
TV Series Renamer
Simple script in python3 that download and organize subtitles from OpenSubtitles. The purpose of the program is to make easier for user to get every subtitle associated with its related video.
How does it work
This program works in ~/Downloads (default) or in a directory passed as argument.
It takes every subdirectory, video, archive and subtitle file in folder that looks like it’s a tv-series related file.
After that it move archives in the corrisponding folder or extracts their contents if the video file is in the same directory of the archive.
If a video file and a subtitle file are related (same tv-shows name and same season and episode) the program renames the subtitle the same as the video.
Configure OpenSubtitle account
Configure opensubtitles.json file as show in opensubtitles.json.example and put it into ~/.opensubtitles_downloader. If you want to use it anonymously don’t insert any username, otherwise use your account on OpenSubtitles.
Install package from pip
pip install --user opensubtitles-downloader
How to use it
Launch it with ~/Downloads directory as target:
$ opensubtitles_downloader
Launch it with user input directory as target:
$ opensubtitles_downloader -d <directory>
Launch it with user input file as target:
$ opensubtitles_downloader -f <filename>
Launch it with clean option:
$ opensubtitles_downloader -c
When this option is activated, the script looks for all subtitles for which there is no video file related and for all empty directories, then it put them in trash. Using the clean option doesn’t prevent the program from downloading subtitles, it’s intended as an extra action and not as an alternative to regular actions.
Contribute
Read CONTRIBUTING.md.
News
0.1.5
Release date: 07-Feb-2019
Fix logging to stdout
0.1.4
Release date: 07-Feb-2019
Improved
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
Hashes for opensubtitles_downloader-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 962ca0f3f057d054578a57d6bda2beabc4b7253f313f6dd38fd7527fe3ce0c6d |
|
MD5 | 5af6a7f4644e183bc8876de69999133b |
|
BLAKE2b-256 | 739066e31d5be914d5b78dfa0266ce2ff6a3923d6d6cf80efb19fd0d8088f53d |
Hashes for opensubtitles_downloader-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75caa7cc4d6bca82826b4d11992cef65052a83642e7a1be40958824568d333c4 |
|
MD5 | 498e5207cc20ab2d4ac83e1b79d6aa6f |
|
BLAKE2b-256 | 22f370b24b09fd1f29583b06b52f48f41bdc51d8cd08e3ccf489c93cf761d132 |