should now work across multiple devices

This commit is contained in:
Isaac Grynsztein
2018-01-14 01:56:28 -05:00
parent 7fcf2256ac
commit 162425b702
4 changed files with 8 additions and 8 deletions

View File

@@ -9,8 +9,8 @@ var bodyParser = require("body-parser");
var app = express();
var appAnchor = express();
var hostURL = config.get("YoutubeDL-Material.Host.url");
var hostPort = config.get("YoutubeDL-Material.Host.port");
var hostURL = config.get("YoutubeDL-Material.Host.frontend-url");
var hostPort = config.get("YoutubeDL-Material.Host.backend-port");
var usingEncryption = config.get("YoutubeDL-Material.Encryption.use-encryption");
var basePath = config.get("YoutubeDL-Material.Downloader.path-base");
var audioPath = config.get("YoutubeDL-Material.Downloader.path-audio");

View File

@@ -1,8 +1,8 @@
{
"YoutubeDL-Material": {
"Host": {
"url": "example.com",
"port": "8088"
"frontend-url": "http://localhost:4200",
"backend-port": "8088"
},
"Encryption": {
"use-encryption": false,

View File

@@ -1,8 +1,8 @@
{
"YoutubeDL-Material": {
"Host": {
"url": "http://localhost:4200",
"port": "8088"
"frontend-url": "http://localhost:4200",
"backend-port": "8088"
},
"Encryption": {
"use-encryption": false,

View File

@@ -50,7 +50,7 @@ export class AppComponent {
this.exists = fileExists;
if (this.exists == "failed")
{
this.downloadHelperMp3(name);
setTimeout(() => this.downloadHelperMp3(name), 500);
}
else
{
@@ -66,7 +66,7 @@ export class AppComponent {
this.exists = fileExists;
if (this.exists == "failed")
{
this.downloadHelperMp4(name);
setTimeout(() => this.downloadHelperMp4(name), 500);
}
else
{