-
+
{props.icon ? (
diff --git a/src/components/media/MediaCard.tsx b/src/components/media/MediaCard.tsx
index 1e8ceb02..2171f7cb 100644
--- a/src/components/media/MediaCard.tsx
+++ b/src/components/media/MediaCard.tsx
@@ -1,13 +1,13 @@
+import { Link } from "react-router-dom";
import {
convertMediaToPortable,
getProviderFromId,
MWMediaMeta,
MWMediaType,
-} from "providers";
-import { Link } from "react-router-dom";
-import { Icon, Icons } from "components/Icon";
-import { serializePortableMedia } from "hooks/usePortableMedia";
-import { DotList } from "components/text/DotList";
+} from "@/providers";
+import { Icon, Icons } from "@/components/Icon";
+import { serializePortableMedia } from "@/hooks/usePortableMedia";
+import { DotList } from "@/components/text/DotList";
export interface MediaCardProps {
media: MWMediaMeta;
@@ -30,7 +30,7 @@ function MediaCardContent({
return (
@@ -38,12 +38,12 @@ function MediaCardContent({
{watchedPercentage > 0 ? (
) : null}
@@ -54,7 +54,7 @@ function MediaCardContent({
{media.title}
{series && media.seasonId && media.episodeId ? (
-
+
S{media.seasonId} E{media.episodeId}
) : null}
diff --git a/src/components/media/VideoPlayer.tsx b/src/components/media/VideoPlayer.tsx
index 92ea4d1c..0009922e 100644
--- a/src/components/media/VideoPlayer.tsx
+++ b/src/components/media/VideoPlayer.tsx
@@ -1,9 +1,9 @@
-import { IconPatch } from "components/buttons/IconPatch";
-import { Icons } from "components/Icon";
-import { Loading } from "components/layout/Loading";
-import { MWMediaCaption, MWMediaStream } from "providers";
import { ReactElement, useEffect, useRef, useState } from "react";
import Hls from "hls.js";
+import { IconPatch } from "@/components/buttons/IconPatch";
+import { Icons } from "@/components/Icon";
+import { Loading } from "@/components/layout/Loading";
+import { MWMediaCaption, MWMediaStream } from "@/providers";
export interface VideoPlayerProps {
source: MWMediaStream;
@@ -14,7 +14,7 @@ export interface VideoPlayerProps {
export function SkeletonVideoPlayer(props: { error?: boolean }) {
return (
-
+
{props.error ? (
@@ -44,8 +44,7 @@ export function VideoPlayer(props: VideoPlayerProps) {
// hls support
if (mustUseHls) {
- if (!videoRef.current)
- return;
+ if (!videoRef.current) return;
if (!Hls.isSupported()) {
setLoading(false);
@@ -55,7 +54,7 @@ export function VideoPlayer(props: VideoPlayerProps) {
const hls = new Hls();
- if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
+ if (videoRef.current.canPlayType("application/vnd.apple.mpegurl")) {
videoRef.current.src = props.source.url;
return;
}
@@ -81,8 +80,7 @@ export function VideoPlayer(props: VideoPlayerProps) {
<>
{skeletonUi}