Repository navigation
Add experimental Bilibili Playwright synchronization - #2
Merged
Merged
Conversation
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.
Adds an opt-in Bilibili adapter alongside Zhihu, using a dedicated Playwright web session and native editor operations. Zhihu remains the default; Bilibili publication is disabled in the example.
The adapter persists allocation intent and exact draft IDs, reuses those IDs on reruns, and independently reopens saved drafts for content and formatting checks. It supports the modern creator iframe and actual inventory/draft response schemas, captures native image upload acknowledgements, and uses the editor's own image clipboard format to preserve uploaded image identity and captions. Inline code uses the native gray text highlight; code blocks retain indentation, tables expand into rows, and navigation uses confirmed same-platform public URLs. A durable QR login helper saves only the manually selected Bilibili session outside Git and does not upload credentials.
Validation on head 5d46a1f:
Remaining gates: public publication, the modern publication form, review/public URL reconciliation, updates to already published Bilibili articles, and authenticated GitHub-hosted runner operation remain unverified. Draft article_id values are never guessed into public cv/opus URLs. Keep allowPublish false. No public Bilibili article has been submitted, and the saved session remains local. This PR stays a draft; the production blog/Zhihu Action pin is unchanged.