mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-10 11:37:21 +00:00
fix(youtube): correct speed and media format options
This commit is contained in:
@@ -379,13 +379,14 @@ export const AddDownloadsModal = () => {
|
||||
password: keychainPassword
|
||||
});
|
||||
if (mediaData && mediaData.formats.length > 0) {
|
||||
const mappedFormats = mediaData.formats.map(f => {
|
||||
const quality = f.resolution || 'Best';
|
||||
const bytes = f.filesize || 0;
|
||||
return {
|
||||
name: quality,
|
||||
ext: f.ext,
|
||||
bytes,
|
||||
const mappedFormats = mediaData.formats.map(f => {
|
||||
const quality = f.resolution || 'Best';
|
||||
const container = f.ext.toUpperCase();
|
||||
const bytes = f.filesize || 0;
|
||||
return {
|
||||
name: `${quality} ${container}`,
|
||||
ext: f.ext,
|
||||
bytes,
|
||||
formatLabel: f.format_label || f.ext.toUpperCase(),
|
||||
detail: bytes ? formatBytes(bytes) : 'Unknown size',
|
||||
selector: f.format_id,
|
||||
|
||||
Reference in New Issue
Block a user