1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-04-08 03:31:47 +00:00

Merge branch 'dev' into patch-1

This commit is contained in:
Adrian Calinescu
2020-03-22 14:17:08 +02:00
committed by GitHub
2 changed files with 103 additions and 103 deletions

View File

@@ -96,12 +96,15 @@ async function rentVideoForLater(videoUrls: string[], username: string, outputDi
() => { return amp.Player.players["vjs_video_3"].cache_.src }
);
const title = await page.evaluate(
let title = await page.evaluate(
// Clear abuse of null assertion operator,
// someone fix this please
() => { return document!.querySelector(".title")!.textContent!.trim() }
);
// Sanitize title
title = title.replace(/"/g, '');
console.log(`Video title is: ${title}`);
console.log('Constructing HLS URL...');