switching computers

This commit is contained in:
Ben
2020-06-17 16:32:16 +01:00
parent e8c4ddcaaa
commit 67dd6f3f39
5 changed files with 47 additions and 38 deletions

View File

@@ -1 +1 @@
require('./src/index').Main();
require('./src/index').Main();

View File

@@ -83,3 +83,13 @@
[17-06-20 16:13:11] HTTP server listening on port 8080
[17-06-20 16:13:11] WebSocket server listening on 8080
[17-06-20 16:13:12] New socket connection from ip: ::1, unique id: RGn4_bvVIIU5ZnRmAAAA
[17-06-20 16:17:31] HTTP server listening on port 8080
[17-06-20 16:17:31] WebSocket server listening on 8080
[17-06-20 16:17:31] New socket connection from ip: ::ffff:127.0.0.1, unique id: kE6N6WlZOyiXUADtAAAA
[17-06-20 16:20:21] HTTP server listening on port 8080
[17-06-20 16:20:21] WebSocket server listening on 8080
[17-06-20 16:20:21] New socket connection from ip: ::1, unique id: dMN1C-rdWGOkKQXjAAAA
[17-06-20 16:20:26] New socket connection from ip: ::1, unique id: y7S-wBJ2wUWMg1B4AAAB
[17-06-20 16:20:33] HTTP server listening on port 8080
[17-06-20 16:20:33] WebSocket server listening on 8080
[17-06-20 16:20:33] New socket connection from ip: ::1, unique id: Oxl6l70wqHl6Wx2zAAAA

View File

@@ -1,20 +1,20 @@
let Socket = io();
(() =>
{
console.log('Starting up');
})();
const VideoInput = document.getElementById("VideosToRecord");
VideoInput.oninput = () =>
{
const ToSend = {
// TODO: add toggle
ExpectPreview: true,
Content: VideoInput.value.split('\n')
};
Socket.emit('VideoListUpdate', ToSend);
};
Socket.on('VideoListResolution', (req) => console.log(req));
let Socket = io();
(() =>
{
console.log('Starting up');
})();
const VideoInput = document.getElementById("VideosToRecord");
VideoInput.oninput = () =>
{
const ToSend = {
// TODO: add toggle
ExpectPreview: true,
Content: VideoInput.value.split('\n')
};
Socket.emit('VideoListUpdate', ToSend);
};
Socket.on('VideoListResolution', (req) => console.log(req));

View File

@@ -52,12 +52,12 @@ async function VideoListUpdate(socket, req)
// {
// Error: bool,
// Errors: [err],
// Content: {
// Content: [{
// id: int,
// url: string,
// valid: bool,
// action: string
// }
// }]
// }
if (!req || !req.Content)
@@ -67,10 +67,9 @@ async function VideoListUpdate(socket, req)
socket.emit('VideoListResolution', Res);
return;
}
const VideoArray = req.Content;
socket.emit('VideoListResolution', );

View File

@@ -1,13 +1,13 @@
const YTDL = require('ytdl-core');
// TODO: does the video resolver need a queue?
module.exports.GetVideoInfoArr = async (arr) =>
{
}
module.exports.GetVideoInfo = async (video) =>
{
}
const YTDL = require('ytdl-core');
// TODO: does the video resolver need a queue?
module.exports.GetVideoInfoArr = async (arr) =>
{
}
module.exports.GetVideoInfo = async (video) =>
{
}