From 711fd2bb750425ffcf4c7845a006b9349723f77a Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 6 Jun 2026 17:46:09 -0400 Subject: [PATCH] =?UTF-8?q?style:=20drop=20aliased=20cross-module=20import?= =?UTF-8?q?=20(I001)=20=E2=80=94=20use=20a=20local=20=5FCAMPAIGNS=5FAPI=20?= =?UTF-8?q?constant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- backend/app/services/download_backends.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/app/services/download_backends.py b/backend/app/services/download_backends.py index 3afdcd6..fab1bb5 100644 --- a/backend/app/services/download_backends.py +++ b/backend/app/services/download_backends.py @@ -25,17 +25,17 @@ from pathlib import Path from .gallery_dl import DownloadResult, ErrorType from .patreon_ingester import PatreonIngester -from .patreon_resolver import ( - _CAMPAIGNS_URL as _CAMPAIGNS_API, - extract_vanity, - resolve_campaign_id_for_source, -) +from .patreon_resolver import extract_vanity, resolve_campaign_id_for_source # Platforms whose download + verify go through the native ingester rather than # gallery-dl. gallery-dl still serves every other platform (subscribestar, # hentaifoundry, discord, pixiv, deviantart) unchanged. NATIVE_INGESTER_PLATFORMS = frozenset({"patreon"}) +# Mirrors patreon_resolver._CAMPAIGNS_URL — surfaced in resolution-failure +# messages so the operator sees the exact lookup endpoint that was hit. +_CAMPAIGNS_API = "https://www.patreon.com/api/campaigns" + def uses_native_ingester(platform: str) -> bool: """True when `platform` is served by the native ingester (not gallery-dl).