mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-24 19:22:06 +00:00
Remove unnecessary quote escape
This commit is contained in:
parent
9af0f299bf
commit
264544f90e
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class Ant1NewsGrEmbedIE(Ant1NewsGrBaseIE):
|
||||||
_URL_RE = _URL_RE.split(r'\?', 1)[0] + r'\?(?:(?!(?P=_q1)).)+'
|
_URL_RE = _URL_RE.split(r'\?', 1)[0] + r'\?(?:(?!(?P=_q1)).)+'
|
||||||
EMBED_RE = r'''(?x)
|
EMBED_RE = r'''(?x)
|
||||||
<iframe[^>]+?src=(?P<_q1>%(quot_re)s)(?P<url>%(url_re)s)(?P=_q1)
|
<iframe[^>]+?src=(?P<_q1>%(quot_re)s)(?P<url>%(url_re)s)(?P=_q1)
|
||||||
''' % {'quot_re': r'[\"\']', 'url_re': _URL_RE}
|
''' % {'quot_re': r'["\']', 'url_re': _URL_RE}
|
||||||
for mobj in re.finditer(EMBED_RE, webpage):
|
for mobj in re.finditer(EMBED_RE, webpage):
|
||||||
url = unescapeHTML(mobj.group('url'))
|
url = unescapeHTML(mobj.group('url'))
|
||||||
if url.startswith('//'):
|
if url.startswith('//'):
|
||||||
|
|
Loading…
Reference in a new issue