Skip to content

Commit bb48732

Browse files
committed
Add support for Apple HLS chapters
1 parent b83317f commit bb48732

File tree

4 files changed

+104
-4
lines changed

4 files changed

+104
-4
lines changed

src/Formats/AppleHLS.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export class AppleHLS extends FormatBase {
66

77
filename = 'apple-hls.json';
88
mimeType = 'application/json';
9+
supportsPrettyPrint = true;
910

1011
titleLanguage = 'en';
1112
imageDims = [1280, 720];

src/Formats/ShutterEDL.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class ShutterEDL extends FormatBase {
6868
return acc;
6969
}, []);
7070

71-
output.unshift('TITLE: ' + this.meta.title);
71+
output.unshift('TITLE: ' + (this.meta.title || 'Chapters'));
7272
return output.join("\n");
7373
}
7474
}

src/views/partials/exportDialog.pug

+5-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ div.offcanvas.offcanvas-bottom#exportDialog(x-ref="exportDialog", style="--bs-of
6262
i.bi.bi-filetype-txt
6363
|
6464
| EDL
65-
65+
li.nav-item
66+
a.nav-link(:class="{active : exportSettings.type === 'applehls'}", href="#", @click.stop.prevent="updateExportContent('applehls')")
67+
i.bi.bi-filetype-json
68+
|
69+
| Apple HLS chapters
6670
div.row.flex-grow-1
6771
div.col-8.d-flex.flex-column
6872
textarea.flex-grow-1.overflow-visible.form-control(:value="exportContent", readonly, x-ref="outputTextarea")

static/app.js

+97-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)