Skip to content

Commit

Permalink
filname doesn't contain |
Browse files Browse the repository at this point in the history
because a filname which contains the character | all | will be romved from the filname
  • Loading branch information
RIVEK-Development committed Sep 20, 2022
1 parent 82aa90c commit b6a97ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function parseJson(res, sendResponse, download){
}


var fileName = name.replaceAll(" - ","-").replaceAll("/","-").replaceAll(/[?%*:;,"]/g, "").replaceAll(/[\\.<> ]/g, "_")+ ".mp4";
var fileName = name.replaceAll(" - ","-").replaceAll("/","-").replaceAll(/[?%*:;,|"]/g, "").replaceAll(/[\\.<> ]/g, "_").replaceAll("__","_")+ ".mp4";
if(download){
chrome.downloads.download({
url: url,
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "StudIP Video Download",
"version": "1.5.2",
"version": "1.5.3",
"description": "Fügt im Opencast Videoplayer von StudIP eine Downloadmöglichkeit ein",
"manifest_version": 3,
"icons": {
Expand Down

0 comments on commit b6a97ad

Please sign in to comment.