1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-17 05:22:18 +00:00

Will thumbnails render on Windows?

This commit is contained in:
snobu
2020-04-08 11:26:02 +03:00
parent a48812cb58
commit 1fc80d8366
3 changed files with 21 additions and 28 deletions

View File

@@ -1,8 +1,7 @@
import axios from 'axios';
import { terminal as term } from 'terminal-kit';
import { Metadata, Session } from './Types';
import fs from 'fs';
import os from 'os';
import { drawThumbnail } from './Thumbnail';
export async function getVideoMetadata(videoGuids: string[], session: Session): Promise<Metadata[]> {
@@ -28,7 +27,7 @@ export async function getVideoMetadata(videoGuids: string[], session: Session):
.map((item: { [x: string]: string }) => { return item["playbackUrl"]; })[0];
posterImage = response.data["posterImage"]["medium"]["url"];
term.brightMagenta(`\n title = ${title}\n playbackUrl = ${playbackUrl}\n`);
metadata.push({