diff --git a/frontend/src/components/DownloadListItem.tsx b/frontend/src/components/DownloadListItem.tsx index ef916ffc..7a4c5812 100644 --- a/frontend/src/components/DownloadListItem.tsx +++ b/frontend/src/components/DownloadListItem.tsx @@ -1,3 +1,4 @@ +import { useState } from 'react'; import { Link } from 'react-router-dom'; import Download from '../pages/Download'; import Routes from '../configuration/routes/RouteList'; @@ -5,9 +6,9 @@ import formatDate from '../functions/formatDates'; import Button from './Button'; import deleteDownloadById from '../api/actions/deleteDownloadById'; import updateDownloadQueueStatusById from '../api/actions/updateDownloadQueueStatusById'; -import { useState } from 'react'; import getApiUrl from '../configuration/getApiUrl'; import { useUserConfigStore } from '../stores/UserConfigStore'; +import defaultVideoThumb from '/img/default-video-thumb.jpg'; type DownloadListItemProps = { download: Download; @@ -25,7 +26,14 @@ const DownloadListItem = ({ download, setRefresh }: DownloadListItemProps) => {
- video_thumb + video_thumb { + currentTarget.onerror = null; // prevents looping + currentTarget.src = defaultVideoThumb; + }} + />
{showIgnored && ignored}