kiss
This commit is contained in:
parent
6d9beb8c7a
commit
6907f478ec
1 changed files with 1 additions and 4 deletions
|
@ -291,10 +291,7 @@ class MediaPlayer extends React.PureComponent {
|
|||
|
||||
const { file_name: fileName } = fileInfo;
|
||||
const encodedFileName = encodeURIComponent(fileName).replace(/!/g, '%21');
|
||||
const re = new RegExp(fileName.replace(/\-/g, '\\-')
|
||||
.replace(/\(/g, '\\(')
|
||||
.replace(/\)/g, '\\)'), 'g');
|
||||
const encodedFilePath = fileInfo.download_path.replace(re, encodedFileName);
|
||||
const encodedFilePath = fileInfo.download_path.replace(fileName, encodedFileName);
|
||||
this.setState({ encodedFilePath });
|
||||
return encodedFilePath;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue