Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit 9fd6da6

Browse files
committed
Fixes audio downloading
1 parent 64557a1 commit 9fd6da6

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

WPFMETRO/Queue.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,7 @@ public Dictionary<string, string> GetFormats(string url)
120120
{
121121
code = values[0].ToString();
122122
desc += "audio";
123-
if (values.Count > 5)
124-
{
125-
desc += values[5].ToString() != "audio" ? " " + values[5].ToString() + ")" : ")";
126-
}
127-
else
128-
{
129-
desc += ")";
130-
}
123+
desc += values.Count > 5 && values[5].ToString() != "audio" ? " " + values[5].ToString() + ")" : ")";
131124
}
132125
else
133126
{

WPFMETRO/Video.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void DownloadVideo()
6969
}
7070
else
7171
{
72-
arguments += SelectedFormat;
72+
arguments += SelectedFormat.Substring(0,SelectedFormat.Length-2);
7373
}
7474

7575
break;

0 commit comments

Comments
 (0)