Update Movie.js

This commit is contained in:
James Hawkins 2021-09-24 07:45:07 +01:00 committed by GitHub
parent 14d82dc558
commit 8489a8af2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,9 +57,9 @@ export function MovieView(props) {
setLoading(true);
getStreamUrl(streamData.slug, streamData.type, streamData.source, season, episode)
.then(({url, subtitles}) => {
.then(({ url }) => {
if (cancel) return;
if (streamData.source === "lookmovie") streamData.subtitles = subtitles;
streamData.subtitles = [];
setStreamUrl(url)
setLoading(false);
})