1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-28 19:02:18 +00:00
Files
destreamer-mirror/src/Types.ts
2020-09-09 05:00:28 +02:00

41 lines
1003 B
TypeScript

export type Session = {
AccessToken: string;
ApiGatewayUri: string;
ApiGatewayVersion: string;
}
export type Video = {
// the following properties are all for the title template
title: string;
duration: string;
publishDate: string;
publishTime: string;
author: string;
authorEmail: string;
uniqueId: string;
// the following properties are all the urls neede for the download
playbackUrl: string;
posterImageUrl: string;
captionsUrl?: string
// final filename, already sanitized and unique
filename: string;
// complete path to save the video
outPath: string;
}
/* NOTE: 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'
];