Skip to content

Commit

Permalink
Add support for Apple HLS chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtillmann committed Feb 1, 2024
1 parent b83317f commit bb48732
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Formats/AppleHLS.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export class AppleHLS extends FormatBase {

filename = 'apple-hls.json';
mimeType = 'application/json';
supportsPrettyPrint = true;

titleLanguage = 'en';
imageDims = [1280, 720];
Expand Down
2 changes: 1 addition & 1 deletion src/Formats/ShutterEDL.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ShutterEDL extends FormatBase {
return acc;
}, []);

output.unshift('TITLE: ' + this.meta.title);
output.unshift('TITLE: ' + (this.meta.title || 'Chapters'));
return output.join("\n");
}
}
6 changes: 5 additions & 1 deletion src/views/partials/exportDialog.pug
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ div.offcanvas.offcanvas-bottom#exportDialog(x-ref="exportDialog", style="--bs-of
i.bi.bi-filetype-txt
|
| EDL

li.nav-item
a.nav-link(:class="{active : exportSettings.type === 'applehls'}", href="#", @click.stop.prevent="updateExportContent('applehls')")
i.bi.bi-filetype-json
|
| Apple HLS chapters
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
99 changes: 97 additions & 2 deletions static/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb48732

Please sign in to comment.