From 2593dabb035841e86fa754c84f1f1997f115daec Mon Sep 17 00:00:00 2001 From: Jacopo Jannone Date: Wed, 23 Sep 2020 21:07:03 +0200 Subject: [PATCH] Fix #2 --- src/background.js | 2 +- src/manifest.json | 4 ++-- src/popup.html | 10 +++++++++- src/popup.js | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/background.js b/src/background.js index a38acbe..fc444b6 100644 --- a/src/background.js +++ b/src/background.js @@ -1,7 +1,7 @@ chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if (request.fetchJson) { - fetch(request.fetchJson) + fetch(request.fetchJson, {headers: {"appFrom": "pb"}}) .then(response => response.json()) .then(response => sendResponse(response)); return true; diff --git a/src/manifest.json b/src/manifest.json index caae1e4..3582572 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -4,8 +4,8 @@ }, "name": "WebXDownloader", "manifest_version": 2, - "version": "1.1.1", - "description": "Extracts the HLS stream of Webex meeting recordings", + "version": "1.1.2", + "description": "Enables downloading of Webex meeting recordings", "browser_action": { "default_icon": "icon.png", "default_title": "WebXDownloader", diff --git a/src/popup.html b/src/popup.html index b56cca5..e84774f 100644 --- a/src/popup.html +++ b/src/popup.html @@ -45,6 +45,10 @@ #chat { margin-top: 0.5em; } + + li { + margin-bottom: .5em; + } @@ -56,7 +60,11 @@
Loading
diff --git a/src/popup.js b/src/popup.js index b2a93d8..008a9cd 100644 --- a/src/popup.js +++ b/src/popup.js @@ -73,7 +73,7 @@ function callback(tabs) { let subdomain = match[1]; let sitename = match[2]; let recording_id = match[3]; - fetch(`https://${subdomain}.webex.com/webappng/api/v1/recordings/${recording_id}/stream?siteurl=${sitename}`) + fetch(`https://${subdomain}.webex.com/webappng/api/v1/recordings/${recording_id}/stream?siteurl=${sitename}`, {headers: {"appFrom": "pb"}}) .then(response => response.json()) .then(data => { let host = data["mp4StreamOption"]["host"];