diff --git a/src/components/Collection/Episode/EpisodeFileInfo.tsx b/src/components/Collection/Episode/EpisodeFileInfo.tsx deleted file mode 100644 index b36f4ed26..000000000 --- a/src/components/Collection/Episode/EpisodeFileInfo.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import React from 'react'; -import prettyBytes from 'pretty-bytes'; - -import useMediaInfo from '@/hooks/useMediaInfo'; - -import type { FileType } from '@/core/types/api/file'; - -const FileInfo = ({ compact, file }: { compact?: boolean, file: FileType }) => { - const mediaInfo = useMediaInfo(file); - - return ( -
-
-
File Details
-
-
-
File Name
- {mediaInfo.Name} -
-
-
Location
- {mediaInfo.Location} -
-
-
Size
- {prettyBytes(mediaInfo.Size, { binary: true })} -
-
-
Group
- {mediaInfo.Group} -
-
-
Video
- {mediaInfo.VideoInfo.join(' | ')} -
-
-
Audio
- {mediaInfo.AudioInfo.join(' | ')} -
-
-
Chapters
- {mediaInfo.Chapters ? 'Yes' : 'No'} -
- {compact && ( -
-
CRC
- {mediaInfo.Hashes.CRC32 ?? ''} -
- )} -
-
- - {!compact && ( -
-
File Hashes
-
-
-
Hash
- {mediaInfo.Hashes.ED2K ?? ''} -
-
-
CRC
- {mediaInfo.Hashes.CRC32 ?? ''} -
-
-
SHA1
- {mediaInfo.Hashes.SHA1 ?? ''} -
-
-
MD5
- {mediaInfo.Hashes.MD5 ?? ''} -
-
-
- )} -
- ); -}; - -export default FileInfo;