feat: Remove url sanitization and let users manually figure that out

In my case changing the url actually broke the script, the original url worked just fine
This commit is contained in:
nima.taheri@hootsuite.com 2022-08-10 12:33:14 -07:00
commit 6ea49d2d7a
2 changed files with 1 additions and 3 deletions

View file

@ -6,9 +6,6 @@ const list = require("./videojson.js");
function loadVideo(num, cb) {
let rawMasterUrl = new URL(list[num].url);
rawMasterUrl.searchParams.delete('query_string_ranges');
rawMasterUrl.searchParams.set('base64_init', 1);
let masterUrl = rawMasterUrl.toString();
getJson(masterUrl, num, (err, json) => {