mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-16 01:51:27 +03:00
Downloaded file names are now converted to their fully decoded forms
This commit is contained in:
@@ -717,7 +717,7 @@ export class MainComponent implements OnInit {
|
|||||||
this.postsService.downloadFileFromServer(name, 'audio').subscribe(res => {
|
this.postsService.downloadFileFromServer(name, 'audio').subscribe(res => {
|
||||||
this.downloading_content['audio'][name] = false;
|
this.downloading_content['audio'][name] = false;
|
||||||
const blob: Blob = res;
|
const blob: Blob = res;
|
||||||
saveAs(blob, name + '.mp3');
|
saveAs(blob, decodeURIComponent(name) + '.mp3');
|
||||||
|
|
||||||
if (!this.fileManagerEnabled) {
|
if (!this.fileManagerEnabled) {
|
||||||
// tell server to delete the file once downloaded
|
// tell server to delete the file once downloaded
|
||||||
@@ -734,7 +734,7 @@ export class MainComponent implements OnInit {
|
|||||||
this.postsService.downloadFileFromServer(name, 'video').subscribe(res => {
|
this.postsService.downloadFileFromServer(name, 'video').subscribe(res => {
|
||||||
this.downloading_content['video'][name] = false;
|
this.downloading_content['video'][name] = false;
|
||||||
const blob: Blob = res;
|
const blob: Blob = res;
|
||||||
saveAs(blob, name + '.mp4');
|
saveAs(blob, decodeURIComponent(name) + '.mp4');
|
||||||
|
|
||||||
if (!this.fileManagerEnabled) {
|
if (!this.fileManagerEnabled) {
|
||||||
// tell server to delete the file once downloaded
|
// tell server to delete the file once downloaded
|
||||||
|
|||||||
Reference in New Issue
Block a user