freshporno

This commit is contained in:
Simon
2025-09-02 09:58:19 +00:00
parent 9caec79427
commit c3f994ccbb
5 changed files with 244 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
#![allow(non_snake_case)]
use std::env;
use diesel::{r2d2::{self, ConnectionManager}, SqliteConnection};
use dotenvy::dotenv;
use ntex_files as fs;
@@ -41,7 +43,7 @@ async fn main() -> std::io::Result<()> {
.expect("Failed to create pool.");
let mut requester = util::requester::Requester::new();
requester.set_proxy(true);
requester.set_proxy(env::var("PROXY").unwrap_or("0".to_string()) == "1".to_string());
let cache: util::cache::VideoCache = crate::util::cache::VideoCache::new();