mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
Update Search.js
This commit is contained in:
parent
c8d799cab5
commit
91d7048243
1 changed files with 7 additions and 2 deletions
|
@ -54,13 +54,17 @@ export function SearchView() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let realUrl = '';
|
let realUrl = '';
|
||||||
|
let subtitles = []
|
||||||
|
|
||||||
if (type === "movie") {
|
if (type === "movie") {
|
||||||
const { url } = await getStreamUrl(slug, type, source);
|
const { url, subtitles: subs } = await getStreamUrl(slug, type, source);
|
||||||
|
|
||||||
if (url === '') {
|
if (url === '') {
|
||||||
return fail(`Not found: ${title}`)
|
return fail(`Not found: ${title}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
realUrl = url;
|
realUrl = url;
|
||||||
|
subtitles = subs
|
||||||
}
|
}
|
||||||
|
|
||||||
setProgress(maxSteps);
|
setProgress(maxSteps);
|
||||||
|
@ -72,7 +76,8 @@ export function SearchView() {
|
||||||
episodes,
|
episodes,
|
||||||
slug,
|
slug,
|
||||||
source,
|
source,
|
||||||
year
|
year,
|
||||||
|
subtitles: subtitles
|
||||||
})
|
})
|
||||||
setText(`Streaming...`)
|
setText(`Streaming...`)
|
||||||
navigate("movie")
|
navigate("movie")
|
||||||
|
|
Loading…
Reference in a new issue