Skip to content

Fix public media info web fallback#399

Merged
subzeroid merged 1 commit into
mainfrom
fix/public-media-info-web-fallback-1.11.1
Jun 30, 2026
Merged

Fix public media info web fallback#399
subzeroid merged 1 commit into
mainfrom
fix/public-media-info-web-fallback-1.11.1

Conversation

@subzeroid

Copy link
Copy Markdown
Owner

Summary

  • mirror instagrapi 2.17.1 public media info fallback for async clients
  • post current media info doc_id to /api/graphql with LSD web headers and normalize xdt_api__v1__media__shortcode__web_info.items
  • tolerate media payloads where video_versions is present but null, including sidecar children
  • bump aiograpi to 1.11.1 and sync upstream baseline to instagrapi 2.17.1

Tests

  • PYTHONDONTWRITEBYTECODE=1 .venv/bin/ruff check aiograpi/extractors.py aiograpi/mixins/public.py aiograpi/mixins/media.py aiograpi/init.py tests/regression/test_public.py tests/regression/test_media_pagination.py tests/regression/test_upstream_sync.py
  • PYTHONDONTWRITEBYTECODE=1 .venv/bin/pytest -q tests/regression
  • uv lock --check
  • git diff --check
  • PYTHONDONTWRITEBYTECODE=1 .venv/bin/python -m build --sdist --wheel --outdir /tmp/aiograpi-dist-1.11.1

Live public smoke against Instagram hit 429 Too Many Requests, so this PR verifies the crash and current payload handling with regression fixtures rather than claiming live public endpoint success.

@subzeroid subzeroid merged commit 2400bf9 into main Jun 30, 2026
13 checks passed
@subzeroid subzeroid deleted the fix/public-media-info-web-fallback-1.11.1 branch June 30, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant