From 09c1a2c5a91620c9f205b3ffb46da04d41a597e8 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Fri, 7 Jun 2024 12:51:22 +0800 Subject: [PATCH] Support login --- .gitignore | 2 + app/js/downloader.js | 136 ++++++++--------------------------- app/js/login/login-helper.js | 98 +++++++++++++++++++++++++ app/js/login/login-qr.js | 48 +++++++++++++ app/js/login/login.js | 110 ++++++++++++++++++++++++++++ app/js/panel.js | 60 ++++++++-------- app/js/request.js | 94 ++++++++++++++++++++++++ app/panel.html | 10 ++- package.json | 13 ++-- 9 files changed, 427 insertions(+), 144 deletions(-) create mode 100644 app/js/login/login-helper.js create mode 100644 app/js/login/login-qr.js create mode 100644 app/js/login/login.js create mode 100644 app/js/request.js diff --git a/.gitignore b/.gitignore index 725e2f4..1fa2d32 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,5 @@ package-lock.json dist/ .DS_Store + +login_info* \ No newline at end of file diff --git a/app/js/downloader.js b/app/js/downloader.js index 0c079d6..39504bf 100644 --- a/app/js/downloader.js +++ b/app/js/downloader.js @@ -1,8 +1,11 @@ const fs = require("fs"); -const crypto = require("crypto"); const http = require("http"); const https = require("https"); const progress = require("progress-stream"); +const { requestWeb } = require("./request"); + +const REGEX_PLAY_INFO = /
+ +欢迎使用米米下载器,轻松下载高清视频、弹幕
@@ -16,7 +24,7 @@