Skip to main content

Finding and ranking subtitles from subscene by how much they are synced.

Project description

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

Recommended way is by using pipx. First, install pipx:

sudo apt install pipx

Then install FindSub by using the command below:

pipx install --python python3.9 findsub

P.S.: FindSub is supported by python3.9+. Also, GCC is required for compiling C extensions. FFmpeg and FFprobe are also needed for extracting of movie's audio.

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.

Dependencies

FFmpeg, FFprobe, Bash, and Iconv are needed in most cases.

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

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

findsub-0.0.6.tar.gz (140.8 kB view details)

Uploaded Source

Built Distribution

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

findsub-0.0.6-cp39-cp39-manylinux_2_31_x86_64.whl (519.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.31+ x86-64

File details

Details for the file findsub-0.0.6.tar.gz.

File metadata

  • Download URL: findsub-0.0.6.tar.gz
  • Upload date:
  • Size: 140.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-43-generic

File hashes

Hashes for findsub-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3639b4b08363f26253d14d5b8fad8c17d618e5f3ec574c3628d529053fea0fc5
MD5 4fc8f1777f06ca95bf0d1fcc2ff99149
BLAKE2b-256 2e6817854589b9ccf777d80bed4d7ec1fe167922c647c96aaa8d975c9c0d951b

See more details on using hashes here.

File details

Details for the file findsub-0.0.6-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: findsub-0.0.6-cp39-cp39-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 519.5 kB
  • Tags: CPython 3.9, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-43-generic

File hashes

Hashes for findsub-0.0.6-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e0ee0c6645c498f613a2f616b9b12f344b4326c0a7e9d9317d6170af75e72a59
MD5 c9437d3c6abfc4613811a8935e5080a7
BLAKE2b-256 7d0e3d4f7e80ea38e44b04c4916176661c0a41ca2df1ae2bf59b81c99d80cb06

See more details on using hashes here.

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