Subify - 下载你喜欢的电视节目和电影的字幕
Subify is a tool to download subtitles for your favorite TV shows and movies. It is directly able to open the video with your default player, once the subtitle is downloaded.
Subify combines OpenSubtitles API and Addic7ed to get the best subtitles for your video. It also considers that you use a default player interpreting srt subtitles when the video file name is the same than the srt file (ex: VLC).
Subify gets the best match from several APIs in this order. This default behavior can easily be changed. See the documentation below
Download the latest version of Subify, and that's it. No need to install something else. Works on Linux, Mac OS (Darwin) and Windows
If you use Golang, you can get Subify and its binary directly with :
go get -u github.com/matcornic/subifyIn MacOS, you can use the power of Service Automator to add Subify options in the Finder contextual menu for your videos.
bin/bash# Change "/projects/go/bin/subify" by the path of your downloaded binary
# Use the commaned you want. Commands are explained below
/projects/go/bin/subify dl "$1" -oIn Windows, you can use Shortcuts do to approximately the same.
shell:sendto (this will navigate to the folder with the "Send to" context menu shortcuts)C:\Windows\System32\cmd.exe /k "C:\tools\subify.exe dl -o" (Change the subify command if needed)And you're done! Just right mouse click on an video and Send to > Subtitle and open. It will find the subtitle and open the video.
Issues:
You need to open cmd.exe and run it from there. warning. This makes sense if there is no file parameter, but the Send to functionality in explorer automatically adds this./k to /c, but then you will never know when an error occurs.Thanks @AndreasFurster for finding this tip.
Note : the binary is usable as is. If you want to run the command from anywhere on your OS, make sure to add Subify home installation to your PATH environment variable
………List available languages
Usage:
subify list languages [flags]
Aliases:
languages, lang
Global Flags:
--all Shows all languages
--config string Config file (default is $HOME/.subify.|json|yaml|toml). Edit to change default behaviour
--dev Instanciate development sandbox instead of production variables
-v, --verbose Print more information while executingList the available apis used by Subify
Usage:
subify list apis [flags]
Global Flags:
--config string Config file (default is $HOME/.subify.|json|yaml|toml). Edit to change default behaviour
--dev Instanciate development sandbox instead of production variables
-v, --verbose Print more information while executingBinaries for common Operating Systems and architectures are available in Release page. But if you need to compile Subify from source, you can do it as well.
git clone https://github.com/matcornic/subify.git (for HTTPS) or [email protected]:matcornic/subify.git (for SSH), or https://github.com/matcornic/subify/archive/master.zip (for the Zip archive)go getgo build./subify --help to test if binary is working (you may have to add execution rights on generated file to launch it, for example chmod u+x ./subify for Linux)Default configuration can be overridden. Instead of passing the same parameters again and again to the command, you can write a JSON/YAML/TOML in your home folder ($HOME/.subify.|json|yaml|toml). Here is an example with a .subify.toml file :
# Root is for all commands
[root]
verbose = false # Turn on to print more information by default
dev = false # Don't turn on, just for development purpose
# download for the download/dl command
[download]
languages = "en" # Searching for theses languages. Can be a list like : "fr,es,en"
apis = "OpenSubtitles,Addic7ed" # Searching from these sites
notify = false--notify=falseSubify is released under the Apache 2.0 license. See LICENSE.txt
暂无开放 Issues,或尚未同步最近议题。