mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2026-03-22 19:25:49 +05:30
feat: added support for multiple audio stream selection in combine mode
This commit is contained in:
@@ -145,6 +145,7 @@ export function CompletedDownload({ state }: CompletedDownloadProps) {
|
||||
|
||||
const isPlaylist = state.playlist_id !== null && state.playlist_indices !== null;
|
||||
const isMultiplePlaylistItems = isPlaylist && state.playlist_indices && state.playlist_indices.includes(',');
|
||||
const isMultipleAudioFormatSelected = state.format_id ? state.format_id.split('+').length > 2 : false;
|
||||
|
||||
return (
|
||||
<div className="p-4 border border-border rounded-lg flex gap-4" key={state.download_id}>
|
||||
@@ -238,6 +239,9 @@ export function CompletedDownload({ state }: CompletedDownloadProps) {
|
||||
{state.acodec && !isMultiplePlaylistItems && (
|
||||
<span className="border border-border py-1 px-2 rounded">{formatCodec(state.acodec)}</span>
|
||||
)}
|
||||
{isMultipleAudioFormatSelected && (
|
||||
<span className="border border-border py-1 px-2 rounded">MULTIAUDIO</span>
|
||||
)}
|
||||
{state.dynamic_range && state.dynamic_range !== 'SDR' && !isMultiplePlaylistItems && (
|
||||
<span className="border border-border py-1 px-2 rounded">{state.dynamic_range}</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user