COMMENT
Made by /u/iRistotle.
Make sure you have the legal right to download a movie on YTS.
URL starts at YTS.mx, this address changes over time and should redirect to the correct website.
DICTIONARY

Dictionary
DICTIONARY

Dictionary
VARIABLES
Set variable
nameID
to
Dictionary
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Genre

Menu Result
LIST

List
SCRIPTING

Chosen Item
TEXT
https://yts.mx/api/v2/list_movies.json?genre=
Chosen Item
&quality=1080p

Text
VARIABLES
Add
Text
to
Continue
SCRIPTING
Search

Menu Result
SCRIPTING

Provided Input
DOCUMENTS
Replace
with
%20
in
Provided Input

Updated Text
TEXT
https://yts.mx/api/v2/list_movies.json?query_term=
Updated Text

Text
VARIABLES
Add
Text
to
Continue
SCRIPTING
End Menu

Menu Result
NETWORK
Get contents of
Continue
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
SCRIPTING
Get
Value
for
data.movies
in
Dictionary

Dictionary Value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
Get
Value
for
title
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
year
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
rating
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
id
in
Repeat Item

Dictionary Value
SCRIPTING
Set
rating
:
Year
[
Name
]
to
movieID
in
Dictionary

Dictionary
VARIABLES
Set variable
nameID
to
Dictionary
SCRIPTING
End Repeat

Repeat Results
DICTIONARY

Dictionary
VARIABLES
Set variable
movieQ
to
Dictionary
SCRIPTING
Get
All Keys
in
nameID

Dictionary Value
FILES
Filter
Dictionary Value

Files
SCRIPTING

Chosen Item
SCRIPTING
Get
Value
for
Chosen Item
in
nameID

Dictionary Value
TEXT
https://yts.mx/api/v2/movie_details.json?movie_id=
Dictionary Value

Text
NETWORK
Get contents of
Text
Options Under Construction

Contents of URL
SCRIPTING
Repeat with each item in
Contents of URL

Repeat Results
SCRIPTING
Get
Value
for
imdb_code
in
Repeat Item

Dictionary Value
SCRIPTING
Repeat with each item in
Contents of URL

Repeat Results
SCRIPTING
Get
Value
for
quality
in
Repeat Item 2

Dictionary Value
SCRIPTING
Get
Value
for
url
in
Repeat Item 2

Dictionary Value
SCRIPTING
Set
movieQuality
to
torrentURL
in
Dictionary

Dictionary
VARIABLES
Set variable
movieQ
to
Dictionary
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Get
Value
for
large_cover_image
in
Repeat Item

Dictionary Value
URL
Dictionary Value

URL
SCRIPTING
If
URL
does not have any value
SCRIPTING
Otherwise
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
VARIABLES
Add
Contents of URL
to
Preview
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
URL
http://www.omdbapi.com/?apikey=
IMDb API
&i=
imdb
&plot=full

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
SCRIPTING
Repeat with each item in
Contents of URL

Repeat Results
SCRIPTING
Get
Value
for
Title
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
Year
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
imdbRating
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
Runtime
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
Genre
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
Plot
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
Language
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
Actors
in
Repeat Item

Dictionary Value
SCRIPTING
End Repeat

Repeat Results
TEXT
##
Year
(
Title
)
### Rating:
Plot
---
^ Runtime:
Language
^ Language:
Rating
^ Genre:
Runtime
---
### Plot
Actors
---
### Actors
imdb
---
<button2>[IMDb](https://imdb.com/title/
Genre
)

Text
VARIABLES
Add
Text
to
Preview
MISSING
Under Construction
SCRIPTING
Wait to return
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Download

Menu Result
SCRIPTING
Get
All Keys
in
movieQ

Dictionary Value
FILES
Filter
Dictionary Value

Files
SCRIPTING

Chosen Item
SCRIPTING
Get
Value
for
Chosen Item
in
movieQ

Dictionary Value
URL
Dictionary Value

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
DOCUMENTS

Saved File
SCRIPTING
Exit shortcut with
Result
SCRIPTING
Exit

Menu Result
SHORTCUTS

Shortcut Result
SCRIPTING
End Menu

Menu Result