diff --git a/frontend/src/components/DownloadListItem.tsx b/frontend/src/components/DownloadListItem.tsx index 28dec4b3..cd9ac14a 100644 --- a/frontend/src/components/DownloadListItem.tsx +++ b/frontend/src/components/DownloadListItem.tsx @@ -6,9 +6,8 @@ import formatDate from '../functions/formatDates'; import Button from './Button'; import deleteDownloadById from '../api/actions/deleteDownloadById'; import updateDownloadQueueStatusById from '../api/actions/updateDownloadQueueStatusById'; -import getApiUrl from '../configuration/getApiUrl'; import { useUserConfigStore } from '../stores/UserConfigStore'; -import defaultVideoThumb from '/img/default-video-thumb.jpg'; +import VideoThumbnail from './VideoThumbail'; type DownloadListItemProps = { download: Download; @@ -22,24 +21,11 @@ const DownloadListItem = ({ download, setRefresh }: DownloadListItemProps) => { const [hideDownload, setHideDownload] = useState(false); - let src = `${getApiUrl()}${download.vid_thumb_url}`; - - if (download.vid_thumb_url === undefined) { - src = defaultVideoThumb; - } - return (
No video found.
; } - let videoThumbSrc = `${getApiUrl()}${video.vid_thumb_url}`; - - if (video.vid_thumb_url === undefined) { - videoThumbSrc = defaultVideoThumb; - } - return (