1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

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}) => {
if (cancel) return;
if (streamData.source === "lookmovie") streamData.subtitles = subtitles;
.then(({ url }) => {
if (cancel) return;
streamData.subtitles = [];
setStreamUrl(url)
setLoading(false);
})