mirror of
https://github.com/iv-org/inv_sig_helper.git
synced 2024-11-22 21:49:42 +00:00
Fix nsig extraction code and some warnings
oops
This commit is contained in:
parent
35fc0bc549
commit
de4fab1517
@ -6,7 +6,7 @@ pub static TEST_YOUTUBE_VIDEO: &str = "https://www.youtube.com/watch?v=jNQXAC9IV
|
||||
|
||||
pub static REGEX_PLAYER_ID: &Lazy<Regex> = regex!("\\/s\\/player\\/([0-9a-f]{8})");
|
||||
pub static NSIG_FUNCTION_ARRAY: &Lazy<Regex> = regex!(
|
||||
"\\.get\\(\"n\"\\)\\)&&\\([a-zA-Z0-9$_]=([a-zA-Z0-9$_]+)(?:\\[(\\d+)])?\\([a-zA-Z0-9$_]\\)"
|
||||
"b=String\\.fromCharCode\\(110\\),c=a\\.get\\(b\\)\\)&&\\(c=([a-zA-Z0-9$_]+)\\[([0-9]+)\\]"
|
||||
);
|
||||
pub static REGEX_SIGNATURE_TIMESTAMP: &Lazy<Regex> = regex!("signatureTimestamp[=:](\\d+)");
|
||||
|
||||
|
11
src/main.rs
11
src/main.rs
@ -8,18 +8,13 @@ use consts::DEFAULT_SOCK_PATH;
|
||||
use jobs::{process_decrypt_n_signature, process_fetch_update, GlobalState, JobOpcode};
|
||||
use opcode::OpcodeDecoder;
|
||||
use player::fetch_update;
|
||||
use std::{env::args, future, io::Error, sync::Arc};
|
||||
use std::{env::args, sync::Arc};
|
||||
use tokio::{
|
||||
fs::remove_file,
|
||||
io::{
|
||||
self, AsyncBufRead, AsyncBufReadExt, AsyncRead, AsyncReadExt, AsyncWrite, BufReader,
|
||||
BufWriter, Interest, Ready,
|
||||
},
|
||||
net::{TcpListener, UnixListener, UnixStream},
|
||||
net::{UnixListener, UnixStream},
|
||||
sync::Mutex,
|
||||
task::{futures, spawn_blocking},
|
||||
};
|
||||
use tokio_util::codec::{Decoder, Framed, FramedRead, FramedWrite};
|
||||
use tokio_util::codec::Framed;
|
||||
|
||||
use crate::jobs::{
|
||||
process_decrypt_signature, process_get_signature_timestamp, process_player_status,
|
||||
|
Loading…
Reference in New Issue
Block a user