Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title: simplify youtube parsing #85

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

tfaughnan
Copy link
Contributor

In youtube_title only use regex to extract the embedded JSON. Then use the stdlib's actual JSON parser from there. This avoids some unescaping quirks and generally feels less brittle. We now disregard <title> entirely since we already were relying on JSON's presence for the channel name. So we might as well use it up front for the video name too.

In `youtube_title` only use regex to extract the embedded JSON. Then use
the stdlib's actual JSON parser from there. This avoids some unescaping
quirks and generally feels less brittle. We now disregard `<title>`
entirely since we already were relying on JSON's presence for the
channel name. So we might as well use it up front for the video name
too.
@pbui
Copy link
Owner

pbui commented Jul 14, 2024

LGTM. TYFYS. o7

@pbui pbui merged commit 2c0a005 into pbui:bobbit-0.2.x Jul 14, 2024
1 check failed
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.

2 participants