Skip to content

Commit

Permalink
Use proxy when getting media data
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew committed Feb 4, 2024
1 parent a2a7376 commit cbf0bf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"yt-dlp-wrap-plus": "^2.3.18"
},
"name": "ytdownloader",
"version": "3.17.0",
"version": "3.17.1",
"main": "main.js",
"scripts": {
"start": "electron .",
Expand Down
12 changes: 10 additions & 2 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ let cookieArg = "";
let browser = "";
let maxActiveDownloads = 5;
let showMoreFormats = false;
let configArg = "";
let configTxt = "";

if (localStorage.getItem("configPath")) {
configArg = "--config-location";
configTxt = `"${localStorage.getItem("configPath")}"`;
}

function checkMaxDownloads() {
if (localStorage.getItem("maxActiveDownloads")) {
Expand Down Expand Up @@ -310,6 +317,8 @@ async function getInfo(url) {
"--no-warnings",
cookieArg,
browser,
configArg,
configTxt,
`"${url}"`,
],
{
Expand Down Expand Up @@ -879,8 +888,7 @@ function download(
) {
// Config file
const newTitle = title1 || title;
let configArg = "";
let configTxt = "";

if (localStorage.getItem("configPath")) {
configArg = "--config-location";
configTxt = `"${localStorage.getItem("configPath")}"`;
Expand Down

0 comments on commit cbf0bf4

Please sign in to comment.