Skip to content

Commit

Permalink
Small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrew-me committed Aug 31, 2022
1 parent 2357057 commit f4041f2
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ body {
font-weight: bold;
cursor: pointer;
margin-top:10px;
font-family: sans-serif;
}
.itemClose {
position: absolute;
Expand Down
7 changes: 7 additions & 0 deletions flatpak/me.aandrew.ytdownloader.desktop
Original file line number Diff line number Diff line change
@@ -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;
64 changes: 64 additions & 0 deletions flatpak/me.aandrew.ytdownloader.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>me.aandrew.ytdownloader</id>
<name>Youtube Downloader</name>
<summary>Download videos and audios from Youtube and other sites</summary>
<description>
<p>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.</p>
<p>✅ Supports Light/Dark mode</p>
<p>✅ Supports high quality video resolutions</p>
<p>✅ Completely free and open source</p>
</description>
<project_license>MIT</project_license>
<metadata_license>CC0-1.0</metadata_license>
<screenshots>
<screenshot type="default">
<image>https://user-images.githubusercontent.com/66430340/181747909-f16e30dc-a7c3-40cb-876b-54f0ea8d4e42.jpg</image>
</screenshot>
<screenshot>
<image>https://user-images.githubusercontent.com/66430340/181747920-4df80914-278f-4350-9328-015e9e0bcf16.jpg</image>
</screenshot>
</screenshots>
<url type="homepage">https://github.com/aandrew-me/ytDownloader</url>

<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>

<releases>
<release version="3.0.0" date="2022-08-29"/>
<release version="2.1.2" date="2022-08-28"/>
<release version="2.1.1" date="2022-08-27"/>
<release version="2.1.0" date="2022-08-27"/>
<release version="2.0.4" date="2022-08-26"/>
<release version="2.0.3" date="2022-08-23"/>
<release version="2.0.1" date="2022-08-10"/>
<release version="2.0" date="2022-08-05"/>
</releases>
</component>
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"./public/**/*",
"package.json",
"./assets/**/*",
"./src/**/*"
"./src/**/*",
"ffmpeg*"
],
"mac": {
"category": "Utility",
Expand Down
6 changes: 5 additions & 1 deletion src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -485,7 +489,7 @@ function download(type) {
}

let controller = new AbortController();
// console.log(rangeOption + " " + rangeCmd);
console.log(rangeOption + " " + rangeCmd);


if (type === "video" && onlyvideo) {
Expand Down

0 comments on commit f4041f2

Please sign in to comment.