Kundenlogo von ICON auf Logo gestellt

This commit is contained in:
Erik Thiele
2026-05-10 19:48:57 +02:00
parent 31ea3107e6
commit d131948c13
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@@ -26,7 +26,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
MEDIA_DIR = os.path.join(BASE_DIR, "media") MEDIA_DIR = os.path.join(BASE_DIR, "media")
CONFIG_FILE = os.path.join(BASE_DIR, "config.json") CONFIG_FILE = os.path.join(BASE_DIR, "config.json")
APP_VERSION = "4.1.0" APP_VERSION = "4.1.1"
UPLOAD_EXTENSIONS = {".jpg", ".jpeg", ".png", ".mp4"} UPLOAD_EXTENSIONS = {".jpg", ".jpeg", ".png", ".mp4"}
app = Flask(__name__) app = Flask(__name__)

View File

@@ -24,7 +24,7 @@ def get_brandfetch_logo(domain):
"""Try to fetch a logo URL from Brandfetch CDN.""" """Try to fetch a logo URL from Brandfetch CDN."""
print(f"🔍 Generate - Versuche Brandfetch für Domain: {domain}") print(f"🔍 Generate - Versuche Brandfetch für Domain: {domain}")
# Direct CDN URL construction - Brandfetch provides logos via cdn.brandfetch.io # Direct CDN URL construction - Brandfetch provides logos via cdn.brandfetch.io
logo_url = f"https://cdn.brandfetch.io/{domain}?c=1idyd4Tpb2nKaXIIc8T" logo_url = f"https://cdn.brandfetch.io/{domain}/logo?c=1idyd4Tpb2nKaXIIc8T"
# if validate_logo_url(logo_url): # if validate_logo_url(logo_url):
print(f"✅ Generate - Brandfetch Logo gefunden: {logo_url}") print(f"✅ Generate - Brandfetch Logo gefunden: {logo_url}")