mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-04-07 01:31:56 -04:00
Don't skip episodes in /api/videos/:slug?with=next
This commit is contained in:
parent
29f731a64c
commit
7bfe463cc2
@ -247,7 +247,7 @@ function getNextVideoEntry({
|
||||
.leftJoin(entryProgressQ, eq(entries.pk, entryProgressQ.entryPk))
|
||||
.crossJoinLateral(entryVideosQ)
|
||||
.leftJoin(entryVideoJoin, eq(entries.pk, entryVideoJoin.entryPk))
|
||||
.innerJoin(vids, eq(vids.pk, entryVideoJoin.videoPk))
|
||||
.leftJoin(vids, eq(vids.pk, entryVideoJoin.videoPk))
|
||||
.where(
|
||||
and(
|
||||
// either way it needs to be of the same show
|
||||
|
||||
@ -16,10 +16,12 @@ export const FullVideo = t.Composite([
|
||||
previous: t.Optional(
|
||||
t.Nullable(
|
||||
t.Object({
|
||||
video: t.String({
|
||||
format: "slug",
|
||||
examples: ["made-in-abyss-s1e12"],
|
||||
}),
|
||||
video: t.Nullable(
|
||||
t.String({
|
||||
format: "slug",
|
||||
examples: ["made-in-abyss-s1e12"],
|
||||
}),
|
||||
),
|
||||
entry: Entry,
|
||||
}),
|
||||
),
|
||||
@ -27,10 +29,12 @@ export const FullVideo = t.Composite([
|
||||
next: t.Optional(
|
||||
t.Nullable(
|
||||
t.Object({
|
||||
video: t.String({
|
||||
format: "slug",
|
||||
examples: ["made-in-abyss-dawn-of-the-deep-soul"],
|
||||
}),
|
||||
video: t.Nullable(
|
||||
t.String({
|
||||
format: "slug",
|
||||
examples: ["made-in-abyss-dawn-of-the-deep-soul"],
|
||||
}),
|
||||
),
|
||||
entry: Entry,
|
||||
}),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user