1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 14:45:42 +07:00

[utils] Share JSON-LD regex

This commit is contained in:
Sergey M․
2018-07-09 23:43:05 +07:00
parent e06632e3fe
commit 0685d9727b
2 changed files with 3 additions and 2 deletions

View File

@@ -184,6 +184,7 @@ def register_socks_protocols():
])
PACKED_CODES_RE = r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)"
JSON_LD_RE = r'(?is)<script[^>]+type=(["\'])application/ld\+json\1[^>]*>(?P<json_ld>.+?)</script>'
def preferredencoding():