mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-03 00:46:19 +01:00
fixes
This commit is contained in:
parent
e50f5eed34
commit
6698ed3b46
3 changed files with 13 additions and 7 deletions
|
@ -26,7 +26,7 @@ Response Body Type: ``application/json``
|
||||||
| isTTFullAudio | boolean | ``true / false`` | ``false`` | Enables download of original sound used in a TikTok video. |
|
| isTTFullAudio | boolean | ``true / false`` | ``false`` | Enables download of original sound used in a TikTok video. |
|
||||||
| isAudioMuted | boolean | ``true / false`` | ``false`` | Disables audio track in video downloads. |
|
| isAudioMuted | boolean | ``true / false`` | ``false`` | Disables audio track in video downloads. |
|
||||||
| dubLang | boolean | ``true / false`` | ``false`` | Backend uses Accept-Language for YouTube video audio tracks when ``true``. |
|
| dubLang | boolean | ``true / false`` | ``false`` | Backend uses Accept-Language for YouTube video audio tracks when ``true``. |
|
||||||
| disableMetadata | boolean | ``true / false`` | ``false`` | Does not add metadata to the downloaded audio/video |
|
| disableMetadata | boolean | ``true / false`` | ``false`` | Disables file metadata when set to ``true``. |
|
||||||
|
|
||||||
### Response Body Variables
|
### Response Body Variables
|
||||||
| key | type | variables |
|
| key | type | variables |
|
||||||
|
|
|
@ -18,7 +18,14 @@ const switchers = {
|
||||||
"vimeoDash": ["false", "true"],
|
"vimeoDash": ["false", "true"],
|
||||||
"audioMode": ["false", "true"]
|
"audioMode": ["false", "true"]
|
||||||
};
|
};
|
||||||
const checkboxes = ["disableTikTokWatermark", "fullTikTokAudio", "muteAudio", "reduceTransparency", "disableAnimations", "disableMetadata"];
|
const checkboxes = [
|
||||||
|
"disableTikTokWatermark",
|
||||||
|
"fullTikTokAudio",
|
||||||
|
"muteAudio",
|
||||||
|
"reduceTransparency",
|
||||||
|
"disableAnimations",
|
||||||
|
"disableMetadata"
|
||||||
|
];
|
||||||
const exceptions = { // used for mobile devices
|
const exceptions = { // used for mobile devices
|
||||||
"vQuality": "720"
|
"vQuality": "720"
|
||||||
};
|
};
|
||||||
|
|
|
@ -440,16 +440,15 @@ export default function(obj) {
|
||||||
name: "miscellaneous",
|
name: "miscellaneous",
|
||||||
title: t('Miscellaneous'),
|
title: t('Miscellaneous'),
|
||||||
body: checkbox([{
|
body: checkbox([{
|
||||||
action: "disableChangelog",
|
|
||||||
name: t("SettingsDisableNotifications")
|
|
||||||
}, {
|
|
||||||
action: "downloadPopup",
|
action: "downloadPopup",
|
||||||
name: t("SettingsEnableDownloadPopup"),
|
name: t("SettingsEnableDownloadPopup"),
|
||||||
padding: "no-margin",
|
|
||||||
aria: t("AccessibilityEnableDownloadPopup")
|
aria: t("AccessibilityEnableDownloadPopup")
|
||||||
}, {
|
}, {
|
||||||
action: "disableMetadata",
|
action: "disableMetadata",
|
||||||
name: t("SettingsDisableMetadata"),
|
name: t("SettingsDisableMetadata")
|
||||||
|
}, {
|
||||||
|
action: "disableChangelog",
|
||||||
|
name: t("SettingsDisableNotifications"),
|
||||||
padding: "no-margin"
|
padding: "no-margin"
|
||||||
}])
|
}])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue