mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-25 07:31:50 +01:00
parent
903cd633cc
commit
6206a8f17e
@ -169,7 +169,7 @@ export function SearchView() {
|
|||||||
newShow.episode = `${parseInt(subselection.show.episode) + 1}`;
|
newShow.episode = `${parseInt(subselection.show.episode) + 1}`;
|
||||||
entry.percentageDone = 0;
|
entry.percentageDone = 0;
|
||||||
// if the current season does not have a next epsiode, and the next season has a first episode, load that
|
// if the current season does not have a next epsiode, and the next season has a first episode, load that
|
||||||
} else if (subselection.meta.episodes[`${parseInt(subselection.show.season) + 1}`][0]) {
|
} else if (subselection.meta.episodes?.[`${parseInt(subselection.show.season) + 1}`]?.[0]) {
|
||||||
newShow.season = `${parseInt(subselection.show.season) + 1}`;
|
newShow.season = `${parseInt(subselection.show.season) + 1}`;
|
||||||
newShow.episode = subselection.meta.episodes[`${parseInt(subselection.show.season) + 1}`][0];
|
newShow.episode = subselection.meta.episodes[`${parseInt(subselection.show.season) + 1}`][0];
|
||||||
entry.percentageDone = 0;
|
entry.percentageDone = 0;
|
||||||
@ -263,19 +263,18 @@ export function SearchView() {
|
|||||||
{/* Continue watching */}
|
{/* Continue watching */}
|
||||||
{continueWatching.length > 0 && page === 'watching' ? <Card>
|
{continueWatching.length > 0 && page === 'watching' ? <Card>
|
||||||
<Title>Continue watching</Title>
|
<Title>Continue watching</Title>
|
||||||
|
<Progress show={progress > 0} failed={failed} progress={progress} steps={maxSteps} text={text} />
|
||||||
{continueWatching?.map((v, i) => (
|
{continueWatching?.map((v, i) => (
|
||||||
// <div>
|
|
||||||
<MovieRow key={i} title={v.data.meta.title} slug={v.data.meta.slug} type={v.type} year={v.data.meta.year} source={v.source} place={v.data.show} percentage={v.percentageDone} deletable onClick={() => {
|
<MovieRow key={i} title={v.data.meta.title} slug={v.data.meta.slug} type={v.type} year={v.data.meta.year} source={v.source} place={v.data.show} percentage={v.percentageDone} deletable onClick={() => {
|
||||||
if (v.type === 'show') {
|
if (v.type === 'show') {
|
||||||
history.push(`${routeMatch.url}/${v.source}/${v.data.meta.title}/${v.slug}/season/${v.data.show.season}/episode/${v.data.show.episode}`)
|
history.push(`/show/${v.source}/${v.data.meta.title}/${v.slug}/season/${v.data.show.season}/episode/${v.data.show.episode}`)
|
||||||
} else {
|
} else {
|
||||||
history.push(`${routeMatch.url}/${v.source}/${v.data.meta.title}/${v.slug}`)
|
history.push(`/movie/${v.source}/${v.data.meta.title}/${v.slug}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
setShowingOptions(false)
|
setShowingOptions(false)
|
||||||
getStream(v.data.meta.title, v.data.meta.slug, v.type, v.source, v.data.meta.year)
|
getStream(v.data.meta.title, v.data.meta.slug, v.type, v.source, v.data.meta.year)
|
||||||
}} />
|
}} />
|
||||||
// </div>
|
|
||||||
))}
|
))}
|
||||||
</Card> : <React.Fragment></React.Fragment>}
|
</Card> : <React.Fragment></React.Fragment>}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user