Skip to main content

FindSub

FindSub is an Application for automatically downloading and ranking subtitles based on how much they are synced from subscene. Compatible With Unix Systems.

Installation

Let's assume you are using python3.9 (python3.9+ is supported) To install finsub, first, you must install these prerequisites:

sudo apt install gcc python3.9-dev

‍‍‍‍‍‍ After that, the recommended way is by using pipx. to install pipx:

sudo apt install python3.9-venv pipx

Then install FindSub by using the command below:

pipx install --python python3.9 findsub

FFmpeg and FFprobe are also needed for extracting of movie's audio that is in use for most cases.

sudo apt install ffmpeg

P.S: Bash and Iconv are required too.

Basic Usage and explanation. (Must read!)

findsub The.French.Dispatch.2021.1080p.WEB-DL.x264.6CH-Pahe.FilmBan.mkv

→ First, findsub try to guess the name of the movie based on the filename and with the help of IMDB. Simultaneously it will extract the movie's audio by using "FFmpeg" and "FFprobe". If a cached extracted audio is present in the same directory, findsub will skip this stage and use it instead. At the same time, findsub tries to download the subtitles from subscene in the desired language. You can use -l/--language to select a language (ISO 639-1). if nothing is specified with this option, findsub will try to use "FINDSUB_LANG" environment variable and if nothing is set, it will use "En" as default. Sometimes, especially when the original movie name is not in English, findsub cannot find the paired subscene page, and you should manually set the subscene link of the page with the help of -s/--subscene option.

Advance Usage

Languages

findsub The.French.Dispatch.2021.1080p.WEB-DL.x264.6CH-Pahe.FilmBan.mkv --language "fa";

OR

export FINDSUB_LANG="fa"; findsub The.French.Dispatch.2021.1080p.WEB-DL.x264.6CH-Pahe.FilmBan.mkv

→ With these two approaches, you can set the language. You must use two-letter codes based on (ISO 639-1). P.S.: exceptionally, use "bz" for Brazillian Portuguese.

Speeding up

findsub The.French.Dispatch.2021.1080p.WEB-DL.x264.6CH-Pahe.FilmBan.mkv --audio ./already_extraced_audio.wav

OR

findsub The.French.Dispatch.2021.1080p.WEB-DL.x264.6CH-Pahe.FilmBan.mkv --synced-subtitle ./synced_sub.srt

→ use an already extracted audio or a sync subtitle to speed up the program.

findsub The.French.Dispatch.2021.1080p.WEB-DL.x264.6CH-Pahe.FilmBan.mkv --subtitles-directory downloaded_sub/

→ Skip downloading subtitles and rank the subtitles within the mentioned directory.

-s/--subscene

subfinder The_Sea_Inside_2004_720p_BrRip_YIFY.mkv -s https://subscene.com/subtitles/the-sea-inside-mar-adentro

→ Sometimes FindSub cannot find the subscene page for a movie, in that case, you should manually pass the link to it.

  • check findsub --help for more info.

Issues

Findsub currently doesn't support downloading subtitles for series episodes. Also, it may not work very well with windows, but it should be usable.

Contributing

Written by: Mahyar Mahdavi <Mahyar@Mahyar24.com>.
License: GNU GPLv3.
Source Code: <https://github.com/mahyar24/FindSub>.
PyPI: <https://pypi.org/project/FindSub/>.
Reporting Bugs and P.R.s are welcomed. :)

License

GPLv3

Metadata

Release files for findsub 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for findsub 0.7.2
File Size Uploaded
findsub-0.7.2.tar.gz 140.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for findsub 0.7.2
File Interpreter ABI Platform
findsub-0.7.2-cp39-cp39-manylinux_2_31_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.31+ x86-64 Details

Total release size: 660.4 kB

Release files / findsub-0.7.2.tar.gz

Download URL findsub-0.7.2.tar.gz
Size 140.8 kB
Tags Source
SHA-256 checksum
How to use checksums
532ca8b4cf4d0b697dffa21c808c016aca89177134b16ec77679b928c14af388
BLAKE2b-256 checksum
How to use checksums
9c0b86d89286f404319a4bca902f0c1101ae698ead51f3d15ade919f6ac88120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.5 Linux/5.13.0-37-generic

Release files / findsub-0.7.2-cp39-cp39-manylinux_2_31_x86_64.whl

Download URL findsub-0.7.2-cp39-cp39-manylinux_2_31_x86_64.whl
Size 519.5 kB
Tags CPython 3.9 Linux glibc 2.31+ x86-64
SHA-256 checksum
How to use checksums
f21974de18695b888a27d8791c08baa0967047c322dfe7c9e46fba9c50e12f95
BLAKE2b-256 checksum
How to use checksums
725546ae79517f897d964261439518290f65418ac4edc5d78cde38e2a72c4b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.5 Linux/5.13.0-37-generic

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page