Skip to content

Commit b6a97ad

Browse files
filname doesn't contain |
because a filname which contains the character | all | will be romved from the filname
1 parent 82aa90c commit b6a97ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function parseJson(res, sendResponse, download){
3838
}
3939

4040

41-
var fileName = name.replaceAll(" - ","-").replaceAll("/","-").replaceAll(/[?%*:;,"]/g, "").replaceAll(/[\\.<> ]/g, "_")+ ".mp4";
41+
var fileName = name.replaceAll(" - ","-").replaceAll("/","-").replaceAll(/[?%*:;,|"]/g, "").replaceAll(/[\\.<> ]/g, "_").replaceAll("__","_")+ ".mp4";
4242
if(download){
4343
chrome.downloads.download({
4444
url: url,

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "StudIP Video Download",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "Fügt im Opencast Videoplayer von StudIP eine Downloadmöglichkeit ein",
55
"manifest_version": 3,
66
"icons": {

0 commit comments

Comments
 (0)