mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-13 09:05:08 +01:00
Update Movie.js
This commit is contained in:
parent
14d82dc558
commit
8489a8af2b
@ -57,9 +57,9 @@ export function MovieView(props) {
|
||||
|
||||
setLoading(true);
|
||||
getStreamUrl(streamData.slug, streamData.type, streamData.source, season, episode)
|
||||
.then(({url, subtitles}) => {
|
||||
if (cancel) return;
|
||||
if (streamData.source === "lookmovie") streamData.subtitles = subtitles;
|
||||
.then(({ url }) => {
|
||||
if (cancel) return;
|
||||
streamData.subtitles = [];
|
||||
setStreamUrl(url)
|
||||
setLoading(false);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user