COMMENT
Watch provider from justwatch.com
TEXT
af8f3c941a02b77133ce273ebf94f963329cfb3da0f3c7f665b28ce1aa6de24b

Text
VARIABLES
Set variable
ApiKey
to
Text
TEXT
118c5ba4d67eb378845a29051ebbd813a35996376175f8b3c1162e9ef74fcab8

Text
VARIABLES
Set variable
Token
to
Text
TEXT
7ff22fbebb47f52d7b9bad87c80c8fab

Text
VARIABLES
Set variable
TMDBApiKey
to
Text
URL
https://api.trakt.tv/users/eaglestclair/watchlist/movies/rank

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
movie
in
Repeat Item

Dictionary Value
VARIABLES
Set variable
MovieDetails
to
Dictionary Value
SCRIPTING
Get
Value
for
title
in
MovieDetails

Dictionary Value
VARIABLES
Set variable
MovieTitle
to
Dictionary Value
SCRIPTING
Get
Value
for
ids
in
MovieDetails

Dictionary Value
SCRIPTING
Get
Value
for
tmdb
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
MovieId
to
Dictionary Value
SCRIPTING
Set
MovieId
to
MovieTitle
in
Dictionary

Dictionary
VARIABLES
Set variable
MovieDictionary
to
Dictionary
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Repeat with each item in
MovieDictionary

Repeat Results
SCRIPTING
Get
Value
for
Repeat Item
in
MovieDictionary

Dictionary Value
URL
https://api.themoviedb.org/3/movie/
Repeat Item
/watch/providers?api_key=
TMDBApiKey

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
SCRIPTING
Get
Value
for
results
in
Contents of URL

Dictionary Value
SCRIPTING
Set
Dictionary Value
to
Dictionary Value
in
Dictionary

Dictionary
VARIABLES
Set variable
ProviderDict
to
Dictionary
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Repeat with each item in
ProviderDict

Repeat Results
SCRIPTING
Get
Value
for
Repeat Item
in
ProviderDict

Dictionary Value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
Get
Value
for
SE
in
Repeat Item 2

Dictionary Value
SCRIPTING
If
Dictionary Value
has any value
SCRIPTING
Get
Value
for
free
in
Dictionary Value

Dictionary Value
SCRIPTING
If
Dictionary Value
has any value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
Get
Value
for
provider_name
in
Repeat Item 3

Dictionary Value
TEXT
Repeat Item
-
Dictionary Value

Text
VARIABLES
Add
Text
to
Free
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
flatrate
in
Dictionary Value

Dictionary Value
SCRIPTING
If
Dictionary Value
has any value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
Get
Value
for
provider_name
in
Repeat Item 3

Dictionary Value
TEXT
Repeat Item
-
Dictionary Value

Text
VARIABLES
Add
Text
to
Flatrate
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
rent
in
Dictionary Value

Dictionary Value
SCRIPTING
If
Dictionary Value
has any value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
Get
Value
for
provider_name
in
Repeat Item 3

Dictionary Value
TEXT
Repeat Item
-
Dictionary Value

Text
VARIABLES
Add
Text
to
Rent
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
End If

If Result
SCRIPTING
If
Free
has any value
TEXT
Free:
Free

Text
SCRIPTING
End If

If Result
SCRIPTING
If
Flatrate
has any value
TEXT
Subscription:
Flatrate

Text
SCRIPTING
End If

If Result
SCRIPTING
If
Rent
has any value
TEXT
Rent:
Rent

Text
SCRIPTING
End If

If Result
TEXT
Text
Text
Text

Text
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Show
Text