emkor / napi-py

CLI tool for downloading subtitles from napiprojekt.pl
GNU General Public License v3.0
7 stars 2 forks source link
cli-tool napiprojekt napiprojekt-api python3 subtitle-downloader

napi-py PyPI - Python Version CI

CLI tool for downloading subtitles from napiprojekt.pl, fork of gabrys/napi.py

prerequisites

installation

usage as CLI tool

usage as lib

from napi import NapiPy

movie_path = "~/Downloads/MyMovie.mp4"

napi = NapiPy()
movie_hash = napi.calc_hash(movie_path)
source_encoding, target_encoding, tmp_file = napi.download_subs(movie_hash)
subs_path = napi.move_subs_to_movie(tmp_file, movie_path)
print(subs_path)

in case of issues

development