summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorThe Hatsune Daishi <[email protected]>2021-03-24 23:33:19 +0900
committerGitHub <[email protected]>2021-03-24 14:33:19 +0000
commiteafcadea261dba64c44c5c17ea8a47ac17256617 (patch)
treeaa51f246fcd33a7ef0f208731a1d917274ff8798 /youtube_dl
parenta40002444e64957594a1305bb2740fddb477beeb (diff)
downloadyoutube-dl-eafcadea261dba64c44c5c17ea8a47ac17256617.tar.gz
youtube-dl-eafcadea261dba64c44c5c17ea8a47ac17256617.zip
[extractor] escape forgotten dot for hostnames in regular expression (#28530)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/generic.py2
-rw-r--r--youtube_dl/extractor/mtv.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index c2b1b3bdf..f99d887ca 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -2953,7 +2953,7 @@ class GenericIE(InfoExtractor):
webpage)
if not mobj:
mobj = re.search(
- r'data-video-link=["\'](?P<url>http://m.mlb.com/video/[^"\']+)',
+ r'data-video-link=["\'](?P<url>http://m\.mlb\.com/video/[^"\']+)',
webpage)
if mobj is not None:
return self.url_result(mobj.group('url'), 'MLB')
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index f5e30d22d..600cf2d89 100644
--- a/youtube_dl/extractor/mtv.py
+++ b/youtube_dl/extractor/mtv.py
@@ -320,7 +320,7 @@ class MTVServicesEmbeddedIE(MTVServicesInfoExtractor):
@staticmethod
def _extract_url(webpage):
mobj = re.search(
- r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//media.mtvnservices.com/embed/.+?)\1', webpage)
+ r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//media\.mtvnservices\.com/embed/.+?)\1', webpage)
if mobj:
return mobj.group('url')