feat: add logging for all operations
fix: music_artist: fetch visitor data only once
This commit is contained in:
parent
be741d28ca
commit
f94d8db4d0
4 changed files with 78 additions and 80 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use fancy_regex::Regex as FancyRegex;
|
||||
use log::debug;
|
||||
use once_cell::sync::Lazy;
|
||||
use regex::Regex;
|
||||
use reqwest::Client;
|
||||
|
|
@ -27,7 +26,7 @@ impl Deobfuscator {
|
|||
let js_url = get_player_js_url(&http).await?;
|
||||
let player_js = get_response(&http, &js_url).await?;
|
||||
|
||||
debug!("Downloaded player.js from {}", js_url);
|
||||
log::debug!("downloaded player.js from {}", js_url);
|
||||
|
||||
let sig_fn = get_sig_fn(&player_js)?;
|
||||
let nsig_fn = get_nsig_fn(&player_js)?;
|
||||
|
|
|
|||
Reference in a new issue