-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
60 lines (42 loc) · 3 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
While I am usually keeping this running, it's not actively maintained.
I was young when I wrote it, mistakes where made :). A complete overhaul with a proper HTML parser is in order. Should be pretty simple. But I'm not sure that it's worth it...
yifysubtitles.com hasn't been functioning for some time now, so I switched to yifysubtitles.org. I have observed some weird search behaviour with it, not sure why (not finding movies at all, some searches are case sensitive and possibly more). A possible solution would be to look up the IMDb ID and use that to directly access the subtitles (seems to work more often than the search). But once again, first paragraph!
Personally, I also recommend you look into "subliminal".
-----------------------------------------------------------
yify-subtitles is a simple command line utility for downloading subtitles from yifysubtitles.com
Installation
Windows
You probably want to compile YifySub.java and either add a batch file to run the
program to your PATH variable or incorporate an option to run it from the context
menu of .mp4 files (most yify movies come in mp4 format). An example registry
file (mp4.reg) is provided.
Linux
make
sudo make install
* Run using 'yifysub'
You also probably want to create an alias to run the program with a default language,
thus reducing the required parameters (eg. alias yifysub="yifysub -l English -m").
As in windows, you could also incorporate it in the context menu of your file manager.
Usage: java -jar <jar_name: yifysub.jar> [-l <language>] [--debug] [--batch] -m <path>
Options:
-m <path> The path to the video file to download subtitles for
Doesn't actually need to to exist (see the algorithm)
-l <language> Language of the subtitles. Defaults to English
--debug Displays some debugging information
--no-output Supresses all output. Does not apply to --debug output
The algorithm the program follows:
The name of the video file is used to attempt and predict the title of the movie.
This does not always succeed since the movie title may contain tokes not allowed in
the name of the video file (eg. colons).
If the search for the movie turns up empty, the user is prompted to provide another
name for the movie. At this point, entering a '\2' char (CTRL + B in windows) will
start the browser on yifysubtitles.com/search.
If instead multiple results match the search term, the user is also prompted to choose
one amongst them. This only displays the results of the first page of the search page.
When the movie to download subtitles from is found/determined, the program will look
for subtitles of the specified language that have a positive rating.
If subtitles are found, they will use the path and name of the video file to save the
subtitles in the same directory and the same name(excluding the extension).
* The name of the video file passed does not need to actually point to an existing
file. Its name is used to determine the title of the movie and its path is used
to save the subtitles.