Merge pull request #57 from cybercase/fix/various_fixes_and_improvements
feat: Add "Title - Artist" for naming tracks
This commit is contained in:
commit
0e2d246343
|
@ -316,6 +316,7 @@ export const ConvertDialog = (props: { files: File[] }) => {
|
||||||
<MenuItem value={`title`}>Title</MenuItem>
|
<MenuItem value={`title`}>Title</MenuItem>
|
||||||
<MenuItem value={`album-title`}>Album - Title</MenuItem>
|
<MenuItem value={`album-title`}>Album - Title</MenuItem>
|
||||||
<MenuItem value={`artist-title`}>Artist - 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>
|
<MenuItem value={`artist-album-title`}>Artist - Album - Title</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
|
@ -414,6 +414,9 @@ async function getTrackNameFromMediaTags(file: File, titleFormat: TitleFormatTyp
|
||||||
case 'artist-title': {
|
case 'artist-title': {
|
||||||
return `${artist} - ${title}`;
|
return `${artist} - ${title}`;
|
||||||
}
|
}
|
||||||
|
case 'title-artist': {
|
||||||
|
return `${title} - ${artist}`;
|
||||||
|
}
|
||||||
case 'album-title': {
|
case 'album-title': {
|
||||||
return `${album} - ${title}`;
|
return `${album} - ${title}`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
||||||
import { enableBatching } from 'redux-batched-actions';
|
import { enableBatching } from 'redux-batched-actions';
|
||||||
import { savePreference, loadPreference } from '../utils';
|
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 type UploadFormat = 'SP' | 'LP2' | 'LP4';
|
||||||
|
|
||||||
export interface ConvertDialogFeature {
|
export interface ConvertDialogFeature {
|
||||||
|
|
Loading…
Reference in New Issue