"""Patreon — no quirks. The reference platform.

Patreon's gallery-dl sidecars are the well-behaved baseline: `url` is a
real permalink, `id` is the post id, `title` and `content` are
populated. No cookie quirks (session cookies are domain-wide). No
derivation overrides.
"""

from .base import GD_DEFAULTS, PlatformInfo

INFO = PlatformInfo(
    key="patreon",
    name="Patreon",
    description="Download posts from Patreon creators",
    auth_type="cookies",
    requires_auth=True,
    url_pattern=r"^https?://(www\.)?patreon\.com/",
    url_examples=[
        "https://www.patreon.com/example_artist",
        "https://www.patreon.com/user?u=12345678",
    ],
    default_config={**GD_DEFAULTS, "content_types": ["images", "attachments"]},
)
