|
|
@ -58,9 +58,9 @@ export function SearchView() { |
|
|
|
return fail("Could not find that movie") |
|
|
|
return fail("Could not find that movie") |
|
|
|
} else if (options.length > 1) { |
|
|
|
} else if (options.length > 1) { |
|
|
|
setProgress(2); |
|
|
|
setProgress(2); |
|
|
|
setText("Choose your movie") |
|
|
|
setText("Choose your movie"); |
|
|
|
setOptions(options.map(v=>({ title: v.title, slug: v.slug, type: v.type }))); |
|
|
|
setOptions(options); |
|
|
|
setShowingOptions(true) |
|
|
|
setShowingOptions(true); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -86,7 +86,7 @@ export function SearchView() { |
|
|
|
Whoops, there are a few movies like that |
|
|
|
Whoops, there are a few movies like that |
|
|
|
</Title> |
|
|
|
</Title> |
|
|
|
{options?.map((v, i) => ( |
|
|
|
{options?.map((v, i) => ( |
|
|
|
<MovieRow key={i} title={v.title} onClick={() => { |
|
|
|
<MovieRow key={i} title={v.title} type={v.type} year={v.year} onClick={() => { |
|
|
|
setShowingOptions(false) |
|
|
|
setShowingOptions(false) |
|
|
|
getStream(v.title, v.slug, v.type) |
|
|
|
getStream(v.title, v.slug, v.type) |
|
|
|
}}/> |
|
|
|
}}/> |
|
|
|