restored resolution badge/icon

This commit is contained in:
2023-01-04 12:14:11 +01:00
parent b35ead4417
commit 1716346628
3 changed files with 6 additions and 3 deletions

View File

@@ -423,7 +423,11 @@ export default function Home({ socket }: Props) {
thumbnail={downloadInfoMap.get(message[0])?.thumbnail ?? ''} thumbnail={downloadInfoMap.get(message[0])?.thumbnail ?? ''}
progress={progressMap.get(message[0]) ?? 0} progress={progressMap.get(message[0]) ?? 0}
stopCallback={() => abort(message[0])} stopCallback={() => abort(message[0])}
resolution={''} resolution={
settings.formatSelection
? ''
: downloadInfoMap.get(message[0])?.best.resolution ?? ''
}
/> />
</Fragment> </Fragment>
</Grid> </Grid>

View File

@@ -1,4 +1,3 @@
import React from "react";
import { EightK, FourK, Hd, Sd } from "@mui/icons-material"; import { EightK, FourK, Hd, Sd } from "@mui/icons-material";
import { Button, Card, CardActionArea, CardActions, CardContent, CardMedia, Chip, LinearProgress, Skeleton, Stack, Typography } from "@mui/material"; import { Button, Card, CardActionArea, CardActions, CardContent, CardMedia, Chip, LinearProgress, Skeleton, Stack, Typography } from "@mui/material";
import { IMessage } from "../interfaces"; import { IMessage } from "../interfaces";

View File

@@ -83,7 +83,7 @@ class Process {
public getMetadata(): Promise<IDownloadMetadata> { public getMetadata(): Promise<IDownloadMetadata> {
if (!this.metadata) { if (!this.metadata) {
let stdoutChunks = []; let stdoutChunks = [];
const ytdlpInfo = spawn(this.exePath, ['-j', this.url]); const ytdlpInfo = spawn(this.exePath, ['-J', this.url]);
ytdlpInfo.stdout.on('data', (data) => { ytdlpInfo.stdout.on('data', (data) => {
stdoutChunks.push(data); stdoutChunks.push(data);