python 3.9
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user