-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
11 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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