Skip to content

Commit

Permalink
Update format version and add new export options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtillmann committed Feb 1, 2024
1 parent 6fa1399 commit 1ab63e4
Show file tree
Hide file tree
Showing 3 changed files with 26,922 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Formats/FormatBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class FormatBase {
description: '',
fileName: '',
waypoints: false,
version: '1.0.0'
version: '1.2.0'
};

filename = 'chapters.json';
Expand Down
22 changes: 22 additions & 0 deletions src/views/partials/exportDialog.pug
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ div.offcanvas.offcanvas-bottom#exportDialog(x-ref="exportDialog", style="--bs-of
i.bi.bi-filetype-xml
|
| Apple Chapters
li.nav-item
a.nav-link(:class="{active : /^(psc|podlove)/.test(exportSettings.type)}", href="#", @click.stop.prevent="updateExportContent('podlove')")
i.bi.bi-filetype-xml
|
| Podlove
li.nav-item
a.nav-link(:class="{active : exportSettings.type === 'mp4chaps'}", href="#", @click.stop.prevent="updateExportContent('mp4chaps')")
i.bi.bi-filetype-txt
|
| MP4Chaps
li.nav-item
a.nav-link(:class="{active : exportSettings.type === 'shutteredl'}", href="#", @click.stop.prevent="updateExportContent('shutteredl')")
i.bi.bi-filetype-txt
|
| EDL

div.row.flex-grow-1
div.col-8.d-flex.flex-column
textarea.flex-grow-1.overflow-visible.form-control(:value="exportContent", readonly, x-ref="outputTextarea")
Expand Down Expand Up @@ -89,6 +105,12 @@ div.offcanvas.offcanvas-bottom#exportDialog(x-ref="exportDialog", style="--bs-of
label.btn.btn-outline-primary(for="formatMKVMergeSimple") simple aka Nero
input#formatVorbisComment.btn-check(type="radio",name="mkvformat",value="vorbiscomment", x-model="exportSettings.type", @change="updateExportContent()")
label.btn.btn-outline-primary(for="formatVorbisComment") Vorbis Comment
template(x-if="/^(psc|podlove)/.test(exportSettings.type)")
div.btn-group.btn-group-sm(role="group")
input#podloveSimpleChapters.btn-check(type="radio",name="podloveformat",value="psc", x-model="exportSettings.type", @change="updateExportContent()")
label.btn.btn-outline-primary(for="podloveSimpleChapters") Podlove Simple Chapters
input#podloveJson.btn-check(type="radio",name="podloveformat",value="podlovejson", x-model="exportSettings.type", @change="updateExportContent()")
label.btn.btn-outline-primary(for="podloveJson") podlove json
template(x-if="exportSettings.type === 'pyscenedetect'")
div
div.input-group.mb-2
Expand Down
26,904 changes: 26,899 additions & 5 deletions static/app.js

Large diffs are not rendered by default.

0 comments on commit 1ab63e4

Please sign in to comment.