Skip to content

redguardtoo/shenshou

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shenshou (神兽)

shenshou.jpg

https://github.com/redguardtoo/shenshou/actions/workflows/test.yml/badge.svg http://melpa.org/packages/shenshou-badge.svg http://stable.melpa.org/packages/shenshou-badge.svg

Download subtitles from opensubtitles.org

Install

Place shenshou.el under your Load Path. Then add (require 'shenshou) to your configuration.

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.

Usage

  • 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.

Tips

Set http or socks5 proxy

;; 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")

Set up subtitle’s language

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

Select the right subtitle

This program gives you the freedom to select the right subtitle.

Bug Report

Check https://github.com/redguardtoo/shenshou.

License

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.

About

download subtitles from opensubtitles.org

Resources

License

Stars

Watchers

Forks

Packages

No packages published