allow drag-drop edl formats

csv, pbf, edl(mplayer), cue and xml (xmeml)
pull/900/head
Mikael Finstad 5 years ago
parent 9a6b689377
commit 17a33dd5df
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -1586,9 +1586,11 @@ const App = memo(() => {
setWorking(i18n.t('Loading file'));
// Import CSV project for existing video
if (filePathLowerCase.endsWith('.csv')) {
const edlFormats = { csv: 'csv', pbf: 'pbf', edl: 'mplayer', cue: 'cue', xml: 'xmeml' };
const matchingExt = Object.keys(edlFormats).find((ext) => filePathLowerCase.endsWith(`.${ext}`));
if (matchingExt) {
if (!checkFileOpened()) return;
await loadEdlFile(firstFilePath, 'csv');
await loadEdlFile(firstFilePath, edlFormats[matchingExt]);
return;
}

Loading…
Cancel
Save