Download subtitles from opensubtitles.org
Place shenshou.el
under your Load Path. Then add (require 'shenshou)
to your configuration.
You MUST register at http://opensubtitles.org first. That’s required by them. Then set shenshou-login-user-name
and shenshou-login-password
using your registered opensubtitles account,
(setq shenshou-login-user-name "redguardtoo")
(setq shenshou-login-password "mypassword")
Command line program “curl” and “gzip” should exist. See shenshou-curl-program
and shenshou-gzip-program
.
- Run
shenshou-download-subtitle
in dired buffer or anywhere. - Run
shenshou-extract-subtitle-from-zip
to extract subtitle from zip file. Subtitle is automatically renamed to match selected video file. - Run
shenshou-logout-now
to logout.
;; socks5 proxy
(setq shenshou-curl-extra-options "-x socks5h://127.0.0.1:9050")
;; http rpoxy
(setq shenshou-curl-extra-options "-x http://username:password@127.0.0.1:8081")
You can set shenshou-language-code-list
,
# see https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes for details
(setq shenshou-language-code-list "eng") # search English subtitles
(setq shenshou-language-code-list "eng,chi") # search English, Chinese subtitles
This program gives you the freedom to select the right subtitle.
Check https://github.com/redguardtoo/shenshou.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.