mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 18:41:48 +01:00
Update Search.js
This commit is contained in:
parent
c8d799cab5
commit
91d7048243
@ -54,13 +54,17 @@ export function SearchView() {
|
||||
}
|
||||
|
||||
let realUrl = '';
|
||||
let subtitles = []
|
||||
|
||||
if (type === "movie") {
|
||||
const { url } = await getStreamUrl(slug, type, source);
|
||||
const { url, subtitles: subs } = await getStreamUrl(slug, type, source);
|
||||
|
||||
if (url === '') {
|
||||
return fail(`Not found: ${title}`)
|
||||
}
|
||||
|
||||
realUrl = url;
|
||||
subtitles = subs
|
||||
}
|
||||
|
||||
setProgress(maxSteps);
|
||||
@ -72,7 +76,8 @@ export function SearchView() {
|
||||
episodes,
|
||||
slug,
|
||||
source,
|
||||
year
|
||||
year,
|
||||
subtitles: subtitles
|
||||
})
|
||||
setText(`Streaming...`)
|
||||
navigate("movie")
|
||||
|
Loading…
Reference in New Issue
Block a user