Cleanup code
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -60,13 +60,13 @@ export default {
|
|||||||
let message;
|
let message;
|
||||||
if (formData.type === "youtube-dl") {
|
if (formData.type === "youtube-dl") {
|
||||||
formData["audio-only"] = "";
|
formData["audio-only"] = "";
|
||||||
formData["extension"] = formData["select-value-extension"];
|
formData["extension"] = "";
|
||||||
if (formData["select-value-extension"] === "Default") {
|
if (formData["select-value-extension"] !== "Default") {
|
||||||
formData["extension"] = "";
|
formData["extension"] = formData["select-value-extension"];
|
||||||
} else if ((formData["select-value-extension"] === "mp3" ) || (formData["select-value-extension"] === "m4a" ) || (formData["select-value-extension"] === "vorbis" ) ) {
|
if ((formData["select-value-extension"] === "mp3" ) || (formData["select-value-extension"] === "m4a" ) || (formData["select-value-extension"] === "vorbis" ) ) {
|
||||||
formData["audio-only"] = "true";
|
formData["audio-only"] = "true";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
helper.info(formData["extension"]);
|
|
||||||
message = helper.t("Download task started!");
|
message = helper.t("Download task started!");
|
||||||
}
|
}
|
||||||
if (!helper.isURL(inputValue) && !helper.isMagnetURI(inputValue)) {
|
if (!helper.isURL(inputValue) && !helper.isMagnetURI(inputValue)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user