parent
850acda658
commit
7e40528b3f
|
@ -316,6 +316,7 @@ export const ConvertDialog = (props: { files: File[] }) => {
|
|||
<MenuItem value={`title`}>Title</MenuItem>
|
||||
<MenuItem value={`album-title`}>Album - Title</MenuItem>
|
||||
<MenuItem value={`artist-title`}>Artist - Title</MenuItem>
|
||||
<MenuItem value={`title-artist`}>Title - Artist</MenuItem>
|
||||
<MenuItem value={`artist-album-title`}>Artist - Album - Title</MenuItem>
|
||||
</Select>
|
||||
</FormControl>
|
||||
|
|
|
@ -414,6 +414,9 @@ async function getTrackNameFromMediaTags(file: File, titleFormat: TitleFormatTyp
|
|||
case 'artist-title': {
|
||||
return `${artist} - ${title}`;
|
||||
}
|
||||
case 'title-artist': {
|
||||
return `${title} - ${artist}`;
|
||||
}
|
||||
case 'album-title': {
|
||||
return `${album} - ${title}`;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|||
import { enableBatching } from 'redux-batched-actions';
|
||||
import { savePreference, loadPreference } from '../utils';
|
||||
|
||||
export type TitleFormatType = 'filename' | 'title' | 'album-title' | 'artist-title' | 'artist-album-title';
|
||||
export type TitleFormatType = 'filename' | 'title' | 'album-title' | 'artist-title' | 'artist-album-title' | 'title-artist';
|
||||
export type UploadFormat = 'SP' | 'LP2' | 'LP4';
|
||||
|
||||
export interface ConvertDialogFeature {
|
||||
|
|
Loading…
Reference in New Issue