From 3c72edffa3eca649da013d71e854846de240756b Mon Sep 17 00:00:00 2001 From: Dhaverd Date: Tue, 3 Jun 2025 23:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BD?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20=D0=B8?= =?UTF-8?q?=D0=BC=D1=8F=20=D0=BA=D0=B0=D1=87=D0=B0=D0=B5=D0=BC=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/YoutubeDownloadController.php | 1 + resources/views/Main.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/YoutubeDownloadController.php b/app/Http/Controllers/YoutubeDownloadController.php index d53a09b..2b56f85 100644 --- a/app/Http/Controllers/YoutubeDownloadController.php +++ b/app/Http/Controllers/YoutubeDownloadController.php @@ -18,6 +18,7 @@ class YoutubeDownloadController extends Controller Options::create() ->downloadPath(env('PATH_TO_DOWNLOAD')) ->url($url) + ->output("%(title)s.%(ext)s_dhaverd_%(id)s") ->format('bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio') ->mergeOutputFormat('mp4') ); diff --git a/resources/views/Main.vue b/resources/views/Main.vue index 45f76d2..7472760 100644 --- a/resources/views/Main.vue +++ b/resources/views/Main.vue @@ -12,7 +12,7 @@ Contact me on Telegram: @Dhaverd
Найти - Скачать + Скачать
BETA @@ -34,6 +34,7 @@ export default { fetching: ref(false), downloadAvailable: ref(false), downloadLink: '', + downloadFileName: '', hint: ref(''), error: ref(false), errorText: ref(''), @@ -56,6 +57,7 @@ export default { } else if (responce.data.link){ this.downloadAvailable = true; this.downloadLink = `/api/v1/file/download/${responce.data.link}`; + this.downloadFileName = responce.data.link.split('_dhaverd_')[0]; } }).catch((error)=>{ this.fetching = false;