diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index a82b7c826..b08254962 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -183,7 +183,7 @@ DATE_FORMATS_MONTH_FIRST.extend([ ]) PACKED_CODES_RE = r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)" -JSON_LD_RE = r'(?is)]+type=(["\']|)application/ld\+json\1[^>]*>(?P.+?)' +JSON_LD_RE = r'(?is)]+type=(["\']?)application/ld\+json\1[^>]*>(?P.+?)' def preferredencoding():