mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-17 05:22:18 +00:00
* added template option and validation * update comment link to element list * get author info when fetching video info * added template elements to video object * minor function naming changes * better exit message for template error * changed template elements for better substitution * implemented video title template * removed trailing decimals on duration * added template description * removed hashing from uniqueId removed debug logger.warn() * fixed typos in default template added elements to template fail message * moved ffmpeg version logging to verbose
35 lines
809 B
TypeScript
35 lines
809 B
TypeScript
export type Session = {
|
|
AccessToken: string;
|
|
ApiGatewayUri: string;
|
|
ApiGatewayVersion: string;
|
|
}
|
|
|
|
|
|
export type Video = {
|
|
title: string;
|
|
duration: string;
|
|
publishDate: string;
|
|
publishTime: string;
|
|
author: string;
|
|
authorEmail: string;
|
|
uniqueId: string;
|
|
outPath: string;
|
|
totalChunks: number; // Abstraction of FFmpeg timemark
|
|
playbackUrl: string;
|
|
posterImageUrl: string;
|
|
captionsUrl?: string
|
|
}
|
|
|
|
|
|
/* TODO: expand this template once we are all on board with a list
|
|
see https://github.com/snobu/destreamer/issues/190#issuecomment-663718010 for list*/
|
|
export const templateElements: Array<string> = [
|
|
'title',
|
|
'duration',
|
|
'publishDate',
|
|
'publishTime',
|
|
'author',
|
|
'authorEmail',
|
|
'uniqueId'
|
|
];
|