Skip to content

feat: support linked reels#2712

Merged
subzeroid merged 9 commits into
masterfrom
feat/link-reel-2708
Jun 30, 2026
Merged

feat: support linked reels#2712
subzeroid merged 9 commits into
masterfrom
feat/link-reel-2708

Conversation

@subzeroid

@subzeroid subzeroid commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • add media_link_reel(media_id, target_media_id, link_name="Watch Next")
  • send linked_media_info through media/{media_id}/edit_media/ using action data
  • document the verified linked Reel helper
  • reuse authorized TEST_ACCOUNTS_URL sessions in live-test helpers so sk.test does not force password+2FA relogin

Closes #2708

Tests

  • uv run --extra test pytest -q tests/regression/test_media.py
  • uv run --extra test pytest -q tests/regression/test_helpers.py tests/regression/test_media.py::MediaActionPayloadRegressionTestCase
  • uv run --extra test ruff check --output-format=github instagrapi/mixins/media.py tests/regression/test_media.py tests/live/test_media.py tests/helpers.py tests/regression/test_helpers.py docs/usage-guide/media.md
  • uv run --extra test ruff format --check instagrapi/mixins/media.py tests/regression/test_media.py tests/live/test_media.py tests/helpers.py tests/regression/test_helpers.py
  • uv run --extra test pytest --collect-only -q tests/live/test_media.py::ClientLinkedReelLiveTestCase::test_media_link_reel
  • ssh sk.test ... pytest -q tests/live/test_media.py::ClientLinkedReelLiveTestCase::test_media_link_reel -s -> 1 passed in 58.49s
  • GitHub checks: pass on 34d630c

Notes

  • media_unlink_reel() is intentionally not included. The proposed clear payload from the issue (linked_media_info="") and a JSON empty object both returned HTTP 400 in live testing, while the link payload passed.
  • Android 434 contains a separate LinkedMediaDelete GraphQL mutation (xig_linked_media_delete, client doc id 8731250647292294617344433924), but a sk.test live probe returned status: ok with null mutation data (1$xig_linked_media_delete(input_data:$input_data): null) and did not remove linked_media_data after polling. The PR only ships the verified link flow.

@subzeroid subzeroid merged commit a88ebe0 into master Jun 30, 2026
12 checks passed
@subzeroid subzeroid deleted the feat/link-reel-2708 branch June 30, 2026 10:44
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.

[Feature] Support Instagram "Link a Reel" (link one reel to another / multi-part series)

1 participant