feat: add download detection job with Prowlarr integration
For each series with missing volumes and an approved metadata link, calls Prowlarr to find available matching releases and stores them in a report (no auto-download). Includes per-series detail page, Telegram notifications with per-event toggles, and stats display in the jobs table. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -85,6 +85,20 @@ struct ProwlarrConfig {
|
||||
categories: Option<Vec<i32>>,
|
||||
}
|
||||
|
||||
pub(crate) async fn load_prowlarr_config_internal(
|
||||
pool: &sqlx::PgPool,
|
||||
) -> Result<(String, String, Vec<i32>), ApiError> {
|
||||
load_prowlarr_config(pool).await
|
||||
}
|
||||
|
||||
pub(crate) async fn check_prowlarr_configured(pool: &sqlx::PgPool) -> Result<(), ApiError> {
|
||||
load_prowlarr_config(pool).await.map(|_| ())
|
||||
}
|
||||
|
||||
pub(crate) fn extract_volumes_from_title_pub(title: &str) -> Vec<i32> {
|
||||
extract_volumes_from_title(title)
|
||||
}
|
||||
|
||||
async fn load_prowlarr_config(
|
||||
pool: &sqlx::PgPool,
|
||||
) -> Result<(String, String, Vec<i32>), ApiError> {
|
||||
|
||||
Reference in New Issue
Block a user