#yifydown
This bash script downloads YIFY movies using YTS.ag Web API.
yifydown.sh [options] [search query]
There aren't problems in writing the movie name (or string to search) with spaces.
The script will show a movie, and ask for confirmation, which can be y
(yes, continues with that movie), n
(no, shows the next movie), s
(summary, prints the movie's summary and asks again), or q
(quit, stops the script). This can be skipped with the -f
option, which selects the first result in chronological order.
Then, the scripts shows the movie qualities available to download (eg. (720p/1080p/3D)
), and it can be answer with one of those (eg 720p
), or quit
the script. However, if the option -q [quality]
is passed, the script will try to download such quality, and if it isn't available, will show the available ones.
The script then searches and downloads the spanish subtitles for that movie, if present in www.yifysubtitles.com. Finally, the script uses aria2 to download the movie through torrent, to the current directory. Everything inside bash.
First, you'll need to get the dependencies, which are jshon
and aria2
.
macOS:
brew install jshon aria2
Download that yifydown.sh script in the repo, and run it in your bash console (well, just open it with Terminal)
Obviously, yts.ag/api. Just remember that not every YIFY movie is indexed at yts.ag... yet.
$ yifydown Full Metal Jacket
1 movie found.
is this the correct movie? (y/yes)(n/no)(s/summary)(q/quit)
Full Metal Jacket (1987)
$ y
available qualities:
(720p)(quit)
$ 720p
downloading spanish subtitles... done.
file size: 750.66 MB
now downloading...
$ yifydown -fq 720p angry
12 Angry Men (1957)
file size: 700.07 MB
downloading spanish subtitles... done.
now downloading...
If you want to help cleaning that rubbish of script (that, at least, works as intended), or add a new functionality, you're welcome here ;)
GNU General Public License v3. If you take this to make something better (well, this is too poor to be useful for someone else), would you tell me about it? I would like it more than this. Thank you!