CLI tool for downloading subtitles from napiprojekt.pl, fork of gabrys/napi.py
pip install napi-py
for user-wide installationnapi-py ~/Downloads/MyMovie.mp4
will download and save subtitles under ~/Downloads/MyMovie.srt
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)
napiprojekt.pl
in your browser, as in example: https://www.napiprojekt.pl/napisy1,1,1-dla-55534-Z%C5%82odziejaszki-(2018)
napiprojekt:96edd6537d9852a51cbdd5b64fee9194
--hash YOURHASH
in this tool, i.e. --hash 96edd6537d9852a51cbdd5b64fee9194
or --hash napiprojekt:96edd6537d9852a51cbdd5b64fee9194
make install
installs poetry virtualenvmake test
runs testsmake build
creates installable package