python 3.9

This commit is contained in:
Gaël
2025-09-10 09:45:18 +02:00
parent b6102d0b4f
commit 8074e7df84

View File

@@ -9,7 +9,6 @@ import re
import time
from logging.handlers import RotatingFileHandler
from typing import Optional, List
import feedparser
import requests
import jwt
@@ -18,7 +17,7 @@ from urllib.parse import urlparse, parse_qs
# ------------- YouTube helpers -------------
def fetch_youtube_oembed_html(youtube_url: str, timeout: int = 10) -> str | None:
def fetch_youtube_oembed_html(youtube_url: str, timeout: int = 10) -> Optional[str]:
"""
Get YouTube oEmbed HTML exactly as provided and wrap it as a Ghost embed card.
"""