Skip to content

Fix JSON parse error on X multi-video posts#41

Open
williamtwomey wants to merge 1 commit into
averygan:mainfrom
williamtwomey:fix-x-multi-video
Open

Fix JSON parse error on X multi-video posts#41
williamtwomey wants to merge 1 commit into
averygan:mainfrom
williamtwomey:fix-x-multi-video

Conversation

@williamtwomey
Copy link
Copy Markdown

X/Twitter posts with multiple videos cause yt-dlp -j to emit one JSON object per line, which broke json.loads(result.stdout) with "Extra data: line 2 column 1". Parse stdout line-by-line and, when multiple entries are returned, surface them as separate cards in the UI so each video can be previewed and downloaded individually. Downloads target a single video via --playlist-items.

X/Twitter posts with multiple videos cause yt-dlp -j to emit one JSON
object per line, which broke json.loads(result.stdout) with "Extra data:
line 2 column 1". Parse stdout line-by-line and, when multiple entries
are returned, surface them as separate cards in the UI so each video
can be previewed and downloaded individually. Downloads target a single
video via --playlist-items.
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