-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[generic] Improve KVS (etc) extraction
* detect kt_player('kt_player', 'https://.../kt_player.swf?v=5... * detect age limit if 18 USC 2257 is mentioned * test with shooshtime.com Partially resolves #31332.
- Loading branch information
Showing
1 changed file
with
22 additions
and
7 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
The
(?:\S+?/)+
in these two patterns can lead to catastrophic backtracking in some cases, such as this webpage:https://support.microsoft.com/en-us/topic/microsoft-bing-help-82d20721-2d6f-4012-a13d-d1910ccf203f
While there is no actual KVS embed in the page, it contains a
<script>
tag whosesrc
attribute URL has a path with several levels of directories, which causes the catastrophic backtracking when the generic extractor is looking for embeds.How it was fixed in yt-dlp:
yt-dlp/yt-dlp@8aa0bd5