From f4041f21f3fb449f3f3dd6fb3528f9a8ed503045 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Wed, 31 Aug 2022 16:39:38 +0600 Subject: [PATCH] Small bug fixes --- assets/css/index.css | 1 + flatpak/me.aandrew.ytdownloader.desktop | 7 +++ flatpak/me.aandrew.ytdownloader.metainfo.xml | 64 ++++++++++++++++++++ package.json | 3 +- src/renderer.js | 6 +- 5 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 flatpak/me.aandrew.ytdownloader.desktop create mode 100644 flatpak/me.aandrew.ytdownloader.metainfo.xml diff --git a/assets/css/index.css b/assets/css/index.css index b3d24ca..ce7dbb9 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -141,6 +141,7 @@ body { font-weight: bold; cursor: pointer; margin-top:10px; + font-family: sans-serif; } .itemClose { position: absolute; diff --git a/flatpak/me.aandrew.ytdownloader.desktop b/flatpak/me.aandrew.ytdownloader.desktop new file mode 100644 index 0000000..6b26a26 --- /dev/null +++ b/flatpak/me.aandrew.ytdownloader.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Youtube Downloader +Comment=Download videos and audios from YouTube and more +Exec=run.sh +Type=Application +Icon=me.aandrew.ytdownloader +Categories=Utility; diff --git a/flatpak/me.aandrew.ytdownloader.metainfo.xml b/flatpak/me.aandrew.ytdownloader.metainfo.xml new file mode 100644 index 0000000..dac7dda --- /dev/null +++ b/flatpak/me.aandrew.ytdownloader.metainfo.xml @@ -0,0 +1,64 @@ + + + me.aandrew.ytdownloader + Youtube Downloader + Download videos and audios from Youtube and other sites + +

YtDownloader lets you download videos and audios of different qualities from Youtube with high speed. It also supports hundreds of other sites including the popular ones but not limited to Facebook, Instagram, Tiktok, Twitter.

+

✅ Supports Light/Dark mode

+

✅ Supports high quality video resolutions

+

✅ Completely free and open source

+
+ MIT + CC0-1.0 + + + https://user-images.githubusercontent.com/66430340/181747909-f16e30dc-a7c3-40cb-876b-54f0ea8d4e42.jpg + + + https://user-images.githubusercontent.com/66430340/181747920-4df80914-278f-4350-9328-015e9e0bcf16.jpg + + + https://github.com/aandrew-me/ytDownloader + + + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + + + + + + + + + + + + +
diff --git a/package.json b/package.json index 21bc86e..98e072b 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "./public/**/*", "package.json", "./assets/**/*", - "./src/**/*" + "./src/**/*", + "ffmpeg*" ], "mac": { "category": "Utility", diff --git a/src/renderer.js b/src/renderer.js index 33c47a4..767252f 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -380,12 +380,16 @@ function manageAdvanced(duration) { if (startTime && !endTime) { rangeCmd = `*${startTime}-${timeFormat(duration)}`; + rangeOption = "--download-sections"; } else if (!startTime && endTime) { rangeCmd = `*0-${endTime}`; + rangeOption = "--download-sections"; } else if (startTime && endTime) { rangeCmd = `*${startTime}-${endTime}`; + rangeOption = "--download-sections"; } else { rangeOption = ""; + rangeCmd = "" } console.log("Range option: " + rangeOption); @@ -485,7 +489,7 @@ function download(type) { } let controller = new AbortController(); - // console.log(rangeOption + " " + rangeCmd); + console.log(rangeOption + " " + rangeCmd); if (type === "video" && onlyvideo) {