diff --git a/server/api/plexapi.ts b/server/api/plexapi.ts index 03246c810..f6b8f3cb0 100644 --- a/server/api/plexapi.ts +++ b/server/api/plexapi.ts @@ -226,12 +226,13 @@ class PlexAPI { id: string, options: { addedAt: number } = { addedAt: Date.now() - 1000 * 60 * 60, - } + }, + mediaType: 'movie' | 'show' ): Promise { const response = await this.plexClient.query({ - uri: `/library/sections/${id}/all?sort=addedAt%3Adesc&addedAt>>=${Math.floor( - options.addedAt / 1000 - )}`, + uri: `/library/sections/${id}/all?type=${ + mediaType === 'show' ? '4' : '1' + }&sort=addedAt%3Adesc&addedAt>>=${Math.floor(options.addedAt / 1000)}`, extraHeaders: { 'X-Plex-Container-Start': `0`, 'X-Plex-Container-Size': `500`, diff --git a/server/lib/scanners/plex/index.ts b/server/lib/scanners/plex/index.ts index 73e4d9b26..f074872bb 100644 --- a/server/lib/scanners/plex/index.ts +++ b/server/lib/scanners/plex/index.ts @@ -96,7 +96,8 @@ class PlexScanner // We remove 10 minutes from the last scan as a buffer addedAt: library.lastScan - 1000 * 60 * 10, } - : undefined + : undefined, + library.type ); // Bundle items up by rating keys diff --git a/src/components/AirDateBadge/index.tsx b/src/components/AirDateBadge/index.tsx index fb9268f6c..c626aad97 100644 --- a/src/components/AirDateBadge/index.tsx +++ b/src/components/AirDateBadge/index.tsx @@ -37,6 +37,7 @@ const AirDateBadge = ({ airDate }: AirDateBadgeProps) => { year: 'numeric', month: 'long', day: 'numeric', + timeZone: 'UTC', })} {showRelative && ( diff --git a/src/components/Layout/MobileMenu/index.tsx b/src/components/Layout/MobileMenu/index.tsx index 2ccd75d3d..e0b45a22f 100644 --- a/src/components/Layout/MobileMenu/index.tsx +++ b/src/components/Layout/MobileMenu/index.tsx @@ -167,27 +167,29 @@ const MobileMenu = () => {
- {filteredLinks.slice(0, 4).map((link) => { - const isActive = - router.pathname.match(link.activeRegExp) && !isOpen; - return ( - - - {cloneElement( - isActive ? link.svgIconSelected : link.svgIcon, - { - className: 'h-6 w-6', - } - )} - - - ); - })} - {filteredLinks.length > 4 && ( + {filteredLinks + .slice(0, filteredLinks.length === 5 ? 5 : 4) + .map((link) => { + const isActive = + router.pathname.match(link.activeRegExp) && !isOpen; + return ( + + + {cloneElement( + isActive ? link.svgIconSelected : link.svgIcon, + { + className: 'h-6 w-6', + } + )} + + + ); + })} + {filteredLinks.length > 4 && filteredLinks.length !== 5 && (
diff --git a/src/components/PersonDetails/index.tsx b/src/components/PersonDetails/index.tsx index 9c8173adc..f4d489d52 100644 --- a/src/components/PersonDetails/index.tsx +++ b/src/components/PersonDetails/index.tsx @@ -91,11 +91,13 @@ const PersonDetails = () => { year: 'numeric', month: 'long', day: 'numeric', + timeZone: 'UTC', }), deathdate: intl.formatDate(data.deathday, { year: 'numeric', month: 'long', day: 'numeric', + timeZone: 'UTC', }), }) ); @@ -106,6 +108,7 @@ const PersonDetails = () => { year: 'numeric', month: 'long', day: 'numeric', + timeZone: 'UTC', }), }) ); diff --git a/src/components/TvDetails/index.tsx b/src/components/TvDetails/index.tsx index 85d185a1c..88e172d9e 100644 --- a/src/components/TvDetails/index.tsx +++ b/src/components/TvDetails/index.tsx @@ -876,6 +876,7 @@ const TvDetails = ({ tv }: TvDetailsProps) => { year: 'numeric', month: 'long', day: 'numeric', + timeZone: 'UTC', })}
@@ -890,6 +891,7 @@ const TvDetails = ({ tv }: TvDetailsProps) => { year: 'numeric', month: 'long', day: 'numeric', + timeZone: 'UTC', })} diff --git a/src/styles/globals.css b/src/styles/globals.css index 7598cb9b1..8d040a00d 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -453,7 +453,15 @@ } input[type='range']::-webkit-slider-thumb { - @apply rounded-full bg-indigo-500; + @apply rounded-full border-0 bg-indigo-500; + pointer-events: all; + width: 16px; + height: 16px; + -webkit-appearance: none; + } + + input[type='range']::-moz-range-thumb { + @apply rounded-full border-0 bg-indigo-500; pointer-events: all; width: 16px; height: 16px;