feat: support linked reels#2712
Merged
Merged
Conversation
This reverts commit 7253574.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
media_link_reel(media_id, target_media_id, link_name="Watch Next")linked_media_infothroughmedia/{media_id}/edit_media/using action dataTEST_ACCOUNTS_URLsessions in live-test helpers sosk.testdoes not force password+2FA reloginCloses #2708
Tests
uv run --extra test pytest -q tests/regression/test_media.pyuv run --extra test pytest -q tests/regression/test_helpers.py tests/regression/test_media.py::MediaActionPayloadRegressionTestCaseuv 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.mduv 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.pyuv run --extra test pytest --collect-only -q tests/live/test_media.py::ClientLinkedReelLiveTestCase::test_media_link_reelssh sk.test ... pytest -q tests/live/test_media.py::ClientLinkedReelLiveTestCase::test_media_link_reel -s-> 1 passed in 58.49s34d630cNotes
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.LinkedMediaDeleteGraphQL mutation (xig_linked_media_delete, client doc id8731250647292294617344433924), but ask.testlive probe returnedstatus: okwith null mutation data (1$xig_linked_media_delete(input_data:$input_data): null) and did not removelinked_media_dataafter polling. The PR only ships the verified link flow.