Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacopo Jannone committed Sep 23, 2020
1 parent 8004229 commit 2593dab
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 9 additions & 1 deletion src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
#chat {
margin-top: 0.5em;
}

li {
margin-bottom: .5em;
}
</style>
</head>
<body>
Expand All @@ -56,7 +60,11 @@
<div id="fail" style="display: none;">
<div class="title">That didn't work</div>
<br>
Some error occurred while processing the page. Maybe refresh and try again?
Some error occurred while processing the page. Here's what you can try:
<ul>
<li>Refresh and try again; sometimes it just works</li>
<li>If you are using incognito mode, try with a normal browser window instead</li>
</ul>
</div>
<div id="loading">
<div class="title">Loading</div>
Expand Down
2 changes: 1 addition & 1 deletion src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 2593dab

Please sign in to comment.