Skip to content

FeedClient.get_feed() doesn't expose the backend's mediaType filter #51

Description

@scottdraves

The backend /feed endpoint supports a mediaType query param (image / video) — see backend/src/controllers/feed.controller.ts (req.query.mediaType) and backend/src/utils/feed.util.ts. The SDK's FeedClient.get_feed() and get_grouped_feed() don't expose it, so there is no way to query a user's still images through the SDK without dropping down to the raw api_client.get("/feed", params={"mediaType": "image"}).

Filtering client-side on the default feed doesn't work as a workaround either, since the default feed appears to exclude image dreams entirely — mediaType="image" must be passed for them to be returned at all.

Fix: add an optional media_type: str = None argument to get_feed() and get_grouped_feed() in src/edream_sdk/client/api_client.py that maps to the mediaType query param.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions